summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-08 03:19:47 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-08 03:19:47 +0000
commit3e7c799cf444d6891139555291d0bb5d730d104e (patch)
tree538fa16ee613151cec579cd1c2679142839cf366 /crawl-ref/source/initfile.cc
parent66e0b2147bb59435490014ce5df5a97f6170c321 (diff)
downloadcrawl-ref-3e7c799cf444d6891139555291d0bb5d730d104e.tar.gz
crawl-ref-3e7c799cf444d6891139555291d0bb5d730d104e.zip
Added option msg_condense_repeats (defaults to true) which causes message
history to condense repeated messages into a single line, so that (for example) if you hear a Zot trap go off five times in a row while resting, message history will show: You hear a distant "Zot!" (x5) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5575 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index 3f53faf6bd..cfcc7cd326 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -616,6 +616,7 @@ void game_options::reset_options()
msg_max_height = 10;
mlist_allow_alternate_layout = false;
classic_hud = false;
+ msg_condense_repeats = true;
view_lock_x = true;
view_lock_y = true;
@@ -2200,6 +2201,7 @@ void game_options::read_option_line(const std::string &str, bool runscript)
else INT_OPTION(msg_max_height, 6, INT_MAX);
else BOOL_OPTION(mlist_allow_alternate_layout);
else BOOL_OPTION(classic_hud);
+ else BOOL_OPTION(msg_condense_repeats);
else BOOL_OPTION(view_lock_x);
else BOOL_OPTION(view_lock_y);
else if (key == "view_lock")