More monster location sanity checks

Placing a monster over already existing one will now complain.
Define EXTRA_SANITY_CHECKS to check monster removal too.
This commit is contained in:
Pasi Kallinen
2018-11-19 22:38:10 +02:00
parent 5acddebb3c
commit b54dda5624
6 changed files with 26 additions and 2 deletions

View File

@@ -383,6 +383,7 @@ struct obj *weap;
/* Sometimes the tail end dies. */
if (!new_worm) {
place_worm_seg(worm, x, y); /* place the "head" segment back */
if (context.mon_moving) {
if (canspotmon(worm))
pline("Part of %s tail has been cut off.",