Engraving sanity checking

This commit is contained in:
Pasi Kallinen
2023-03-18 07:30:25 +02:00
parent 0d9801e17f
commit f360dee4dd
4 changed files with 35 additions and 0 deletions

View File

@@ -330,6 +330,7 @@ map_cleanup(void)
{
struct obj *otmp;
struct trap *ttmp;
struct engr *etmp;
coordxy x, y;
for (x = 0; x < COLNO; x++)
@@ -347,6 +348,10 @@ map_cleanup(void)
if (((ttmp = t_at(x, y)) != 0)
&& !undestroyable_trap(ttmp->ttyp))
deltrap(ttmp);
/* engravings? */
if ((etmp = engr_at(x, y)) != 0)
del_engr(etmp);
}
}
}