From 515e08e5bde575a0c51191877c4156d8b3e29399 Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Mon, 19 Oct 2009 18:41:35 -0700 Subject: 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. --- crawl-ref/source/arena.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'crawl-ref/source/arena.cc') 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; -- cgit v1.2.3-54-g00ecf