diff options
author | Neil Moore <neil@s-z.org> | 2013-12-30 21:51:19 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-12-30 21:52:39 -0500 |
commit | b80bb099385e7d0e70b058492140caa7afc4abbc (patch) | |
tree | b500e17ade4748cb00e53d0062b78df957ba7a9c /crawl-ref/source/dbg-scan.cc | |
parent | 849d06bd9a8b0c4517cc22c22945ae0a438363ab (diff) | |
download | crawl-ref-b80bb099385e7d0e70b058492140caa7afc4abbc.tar.gz crawl-ref-b80bb099385e7d0e70b058492140caa7afc4abbc.zip |
Don't check monster validity when loading a level.
During a level excursion, the player's position isn't correct, so they
might appear to be standing on top of a monster.
Diffstat (limited to 'crawl-ref/source/dbg-scan.cc')
-rw-r--r-- | crawl-ref/source/dbg-scan.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/dbg-scan.cc b/crawl-ref/source/dbg-scan.cc index b7adcc868b..fca1a8e304 100644 --- a/crawl-ref/source/dbg-scan.cc +++ b/crawl-ref/source/dbg-scan.cc @@ -642,7 +642,7 @@ void debug_mons_scan() } #endif -void check_map_validity() +void check_map_validity(bool check_monsters) { #ifdef ASSERTS dungeon_feature_type portal = DNGN_UNSEEN; @@ -711,6 +711,7 @@ void check_map_validity() // And just for good measure: debug_item_scan(); - debug_mons_scan(); + if (check_monsters) + debug_mons_scan(); #endif } |