summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-02-27 11:26:06 -0700
committerSteve Melenchuk <smelenchuk@gmail.com>2014-02-27 11:28:02 -0700
commitbc91c1a70fa22b8bed8363131c1eacf5f928ffcc (patch)
tree0e01ff06be8aa541f8cbb1b3ff3ee9f47864c305 /crawl-ref/source/initfile.cc
parente3a43be560f5bfd2d774c6c5a29ab64a1ddef3c0 (diff)
downloadcrawl-ref-bc91c1a70fa22b8bed8363131c1eacf5f928ffcc.tar.gz
crawl-ref-bc91c1a70fa22b8bed8363131c1eacf5f928ffcc.zip
Make arena_delay available outside of arena as view_delay.
So, if you're running a bot or you're generally annoyed by ranged/magical animations, you can set this to an appropriately low value. This also condenses a lot of code duplication related to arena_delay; a new function called scaled_delay is used for functions that should be impacted by this.
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index 504b0639ef..9386741366 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -840,7 +840,8 @@ void game_options::reset_options()
travel_stair_cost = 500;
- arena_delay = 600;
+ view_delay = DEFAULT_VIEW_DELAY;
+
arena_dump_msgs = false;
arena_dump_msgs_all = false;
arena_list_eq = false;
@@ -3556,7 +3557,7 @@ void game_options::read_option_line(const string &str, bool runscript)
else
constants.insert(field);
}
- else INT_OPTION(arena_delay, 0, INT_MAX);
+ else INT_OPTION(view_delay, 0, INT_MAX);
else BOOL_OPTION(arena_dump_msgs);
else BOOL_OPTION(arena_dump_msgs_all);
else BOOL_OPTION(arena_list_eq);