summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dbg-scan.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-08-28 17:01:09 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-08-28 18:05:13 +0200
commit7239bd2f8ccab04abfd27d2f3c90ce76c8c1dbe4 (patch)
treeefc774a760fa403e3655b8551d461c5c214ef1cb /crawl-ref/source/dbg-scan.cc
parent898b426e3f1402ce87efb7ba298898bfbb465e7f (diff)
downloadcrawl-ref-7239bd2f8ccab04abfd27d2f3c90ce76c8c1dbe4.tar.gz
crawl-ref-7239bd2f8ccab04abfd27d2f3c90ce76c8c1dbe4.zip
Let dbg_scan look for missing constrictors.
Diffstat (limited to 'crawl-ref/source/dbg-scan.cc')
-rw-r--r--crawl-ref/source/dbg-scan.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/dbg-scan.cc b/crawl-ref/source/dbg-scan.cc
index 0406323210..8e2d41f480 100644
--- a/crawl-ref/source/dbg-scan.cc
+++ b/crawl-ref/source/dbg-scan.cc
@@ -461,6 +461,12 @@ void debug_mons_scan()
else
ASSERT(monster_by_mid(m->mid) == m);
}
+
+ if (m->constricted_by && !monster_by_mid(m->constricted_by))
+ {
+ mprf(MSGCH_ERROR, "Error: constrictor missing for monster %s(%d)",
+ m->name(DESC_PLAIN, true).c_str(), m->mindex());
+ }
} // for (int i = 0; i < MAX_MONSTERS; ++i)
for (map<mid_t, unsigned short>::const_iterator mc = env.mid_cache.begin();