diff options
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() ); |