Add sanity checking for long worms

This commit is contained in:
Pasi Kallinen
2017-06-16 18:27:25 +03:00
parent 015f877705
commit 60443a4ee7
3 changed files with 25 additions and 0 deletions

View File

@@ -93,6 +93,8 @@ mon_sanity_check()
else if (level.monsters[x][y] != mtmp)
impossible("mon (%s) at <%d,%d> is not there!",
fmt_ptr((genericptr_t) mtmp), x, y);
else if (mtmp->wormno)
sanity_check_worm(mtmp);
}
for (x = 0; x < COLNO; x++)