summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dbg-scan.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-10-28 16:29:52 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-10-28 16:37:04 +0100
commit7677ce75e7808539062466d098c2634abcaa8463 (patch)
tree5a343a85d496855638841e0d8985017031fca7d6 /crawl-ref/source/dbg-scan.cc
parent023f6cc27b901f9c1e8055bd9f4d47b3857f838e (diff)
downloadcrawl-ref-7677ce75e7808539062466d098c2634abcaa8463.tar.gz
crawl-ref-7677ce75e7808539062466d098c2634abcaa8463.zip
Point out the location of monsters in wall if DEBUG_FATAL is set.
Although the "highlight" consisting of a mere '?' is hard to find.
Diffstat (limited to 'crawl-ref/source/dbg-scan.cc')
-rw-r--r--crawl-ref/source/dbg-scan.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/dbg-scan.cc b/crawl-ref/source/dbg-scan.cc
index 55d0fe30e7..e9ce301c83 100644
--- a/crawl-ref/source/dbg-scan.cc
+++ b/crawl-ref/source/dbg-scan.cc
@@ -412,6 +412,10 @@ void debug_mons_scan()
if (feat_is_wall(grd(pos)) && mons_primary_habitat(m) != HT_ROCK
&& mons_primary_habitat(m) != HT_INCORPOREAL)
{
+#if defined(DEBUG_FATAL)
+ // if we're going to dump, point out the culprit
+ env.pgrid(pos) |= FPROP_HIGHLIGHT;
+#endif
mprf(MSGCH_ERROR, "Monster %s in %s at (%d, %d)%s",
m->full_name(DESC_PLAIN, true).c_str(),
dungeon_feature_name(grd(pos)),