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

@@ -536,6 +536,11 @@ skip_lots:
saveobjchn(fd, level.buriedobjlist, mode);
saveobjchn(fd, billobjs, mode);
if (release_data(mode)) {
int x,y;
for (y = 0; y < ROWNO; y++)
for (x = 0; x < COLNO; x++)
level.monsters[x][y] = 0;
fmon = 0;
ftrap = 0;
fobj = 0;