summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/arena.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-10-19 18:41:35 -0700
committerMatthew Cline <zelgadis@sourceforge.net>2009-10-19 18:41:35 -0700
commit515e08e5bde575a0c51191877c4156d8b3e29399 (patch)
tree97770ba5ec2db94b8e07b3b65cd21a16c5d8c892 /crawl-ref/source/arena.cc
parentc46a242c68755b744c96b8fb4b2be3db186367eb (diff)
downloadcrawl-ref-515e08e5bde575a0c51191877c4156d8b3e29399.tar.gz
crawl-ref-515e08e5bde575a0c51191877c4156d8b3e29399.zip
arena.cc: Don't dump examination messages
Don't dump message to arena.result if they're the result of the user examine the arena.
Diffstat (limited to 'crawl-ref/source/arena.cc')
-rw-r--r--crawl-ref/source/arena.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/arena.cc b/crawl-ref/source/arena.cc
index c89e328644..bb7d007661 100644
--- a/crawl-ref/source/arena.cc
+++ b/crawl-ref/source/arena.cc
@@ -654,6 +654,16 @@ namespace arena
std::string prefix;
switch (chan)
{
+ // Ignore messages generated while the user examines
+ // the arnea.
+ case MSGCH_PROMPT:
+ case MSGCH_MONSTER_DAMAGE:
+ case MSGCH_MONSTER_TARGET:
+ case MSGCH_FLOOR_ITEMS:
+ case MSGCH_EXAMINE:
+ case MSGCH_EXAMINE_FILTER:
+ continue;
+
case MSGCH_ERROR: prefix = "ERROR: "; break;
case MSGCH_WARN: prefix = "WARN: "; break;
case MSGCH_DIAGNOSTICS: prefix = "DIAG: "; break;