diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-10-13 18:12:47 -0700 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-10-13 18:12:47 -0700 |
commit | 91527afd3e9c0e92ddb79cdc63e89ccf2fa536fe (patch) | |
tree | 0f1a2fa32e71404f18b1757cac3dcb236bc557c5 /crawl-ref/source/initfile.cc | |
parent | 325031f16090a6e875890c27854be77167e8b268 (diff) | |
download | crawl-ref-91527afd3e9c0e92ddb79cdc63e89ccf2fa536fe.tar.gz crawl-ref-91527afd3e9c0e92ddb79cdc63e89ccf2fa536fe.zip |
New option explore_delay, which lets you make the delay between auto-explore
moves be different than the delay between the moves of other types of
travel. By default (explore_delay == -1) the auto-explore delay is the
same as travel_delay, preserving the old behaviour.
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index e256359f2c..8370797f44 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -780,6 +780,7 @@ void game_options::reset_options() pickup_thrown = true; travel_delay = 20; + explore_delay = -1; travel_stair_cost = 500; arena_delay = 600; @@ -2791,6 +2792,15 @@ void game_options::read_option_line(const std::string &str, bool runscript) if (travel_delay > 2000) travel_delay = 2000; } + else if (key == "explore_delay") + { + // Read explore delay in milliseconds. + explore_delay = atoi( field.c_str() ); + if (explore_delay < -1) + explore_delay = -1; + if (explore_delay > 2000) + explore_delay = 2000; + } else if (key == "level_map_cursor_step") { level_map_cursor_step = atoi( field.c_str() ); |