summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/message.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-04-09 12:52:19 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-04-09 12:52:19 +0200
commit7872dfe2f1dbb0966d738d918151614cfc2e8074 (patch)
treef95f6433150b6a59569950737c98e56d580eabe6 /crawl-ref/source/message.h
parentb3860d843f61ceb4113a9eeb230063d3a53b9e9e (diff)
downloadcrawl-ref-7872dfe2f1dbb0966d738d918151614cfc2e8074.tar.gz
crawl-ref-7872dfe2f1dbb0966d738d918151614cfc2e8074.zip
Fix a possible infinite loop when dumping.
If all messages in the buffer are not "dumpworthy" (MSGCH_EQUIPMENT, MSGCH_DIAGNOSTICS or MSGCH_TUTORIAL), it'll spin forever. This commit also removes such racism if the dump happens during a crash: we do want to see debug output.
Diffstat (limited to 'crawl-ref/source/message.h')
-rw-r--r--crawl-ref/source/message.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/message.h b/crawl-ref/source/message.h
index 5edd1f2906..ff6ec0c876 100644
--- a/crawl-ref/source/message.h
+++ b/crawl-ref/source/message.h
@@ -110,7 +110,7 @@ void replay_messages();
void set_more_autoclear(bool on);
-string get_last_messages(int mcount);
+string get_last_messages(int mcount, bool full = false);
void get_recent_messages(vector<string> &messages,
vector<msg_channel_type> &channels);