summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monplace.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-29 10:32:57 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-29 10:32:57 +0000
commit2cc1fcd4c22999a035ce33eada216055a63b3cc7 (patch)
tree5790f233798631e161245745dc17aace4c3fe493 /crawl-ref/source/monplace.cc
parent3744c360da8fefca3e74ec098b9478df017f6b3f (diff)
downloadcrawl-ref-2cc1fcd4c22999a035ce33eada216055a63b3cc7.tar.gz
crawl-ref-2cc1fcd4c22999a035ce33eada216055a63b3cc7.zip
Some more attempts to prevent/catch/diagnose floating monster problems. Among
other things: * If level generation leaves some monsters detached then this will be specifically noted. * If applying _handle_monster_move() to a monster causes that monster to become detached it will be noted (those it won't catch *other* monster being detached by that monster moving). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8009 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monplace.cc')
-rw-r--r--crawl-ref/source/monplace.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc
index 4141730bc7..84a128e5e1 100644
--- a/crawl-ref/source/monplace.cc
+++ b/crawl-ref/source/monplace.cc
@@ -975,6 +975,8 @@ static int _place_monster_aux( const mgen_data &mg,
return (-1);
}
+ ASSERT(mgrd(fpos) == NON_MONSTER);
+
// Now, actually create the monster. (Wheeee!)
menv[id].type = mg.cls;
menv[id].base_monster = mg.base_type;