diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-04-23 10:25:29 -0400 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-04-23 10:26:32 -0400 |
commit | 55ab616a8764c7c7b3cea8aa8461c82f73aa44aa (patch) | |
tree | a5bb24a17fd7e1fdc4bfce44c2671af44e727616 /crawl-ref/source/message.cc | |
parent | 32ba97dc61202426f563582238aedd7b668ca8c1 (diff) | |
download | crawl-ref-55ab616a8764c7c7b3cea8aa8461c82f73aa44aa.tar.gz crawl-ref-55ab616a8764c7c7b3cea8aa8461c82f73aa44aa.zip |
Don't log DGL messages twice in certain instances (#8414).
This was accomplished by adding a new message channel, MSGCH_DGL_MESSAGE.
Diffstat (limited to 'crawl-ref/source/message.cc')
-rw-r--r-- | crawl-ref/source/message.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/message.cc b/crawl-ref/source/message.cc index 4ac800af43..870d6996e8 100644 --- a/crawl-ref/source/message.cc +++ b/crawl-ref/source/message.cc @@ -936,6 +936,7 @@ static msg_colour_type channel_to_msgcol(msg_channel_type channel, int param) case MSGCH_EQUIPMENT: case MSGCH_EXAMINE: case MSGCH_EXAMINE_FILTER: + case MSGCH_DGL_MESSAGE: default: ret = param > 0 ? msg_colour(param) : MSGCOL_LIGHTGREY; break; @@ -1370,7 +1371,7 @@ static void mpr_check_patterns(const string& message, if (channel == MSGCH_EQUIPMENT || channel == MSGCH_FLOOR_ITEMS || channel == MSGCH_MULTITURN_ACTION || channel == MSGCH_EXAMINE || channel == MSGCH_EXAMINE_FILTER - || channel == MSGCH_TUTORIAL) + || channel == MSGCH_TUTORIAL || channel == MSGCH_DGL_MESSAGE) { continue; } |