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:16 +02:00
parent 5acddebb3c
commit b54dda5624
6 changed files with 26 additions and 2 deletions
+1
View File
@@ -725,6 +725,7 @@ register struct attack *mattk;
* but don't leave it on the screen. Move the aggressor to the
* defender's position.
*/
remove_monster(dx, dy);
remove_monster(ax, ay);
place_monster(magr, dx, dy);
newsym(ax, ay); /* erase old position */