sanity check of objs_deleted
Teach obj_sanity_check() and clear_bypasses() about the new obj list. It should always be empty when sanity checks are performed. That might not be the case when obj bypasses are cleared, although failing to clear bypasses for deleted objects wouldn't make any difference, so this is mainly cosmetic.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 worn.c $NHDT-Date: 1707547726 2024/02/10 06:48:46 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.100 $ */
|
||||
/* NetHack 3.7 worn.c $NHDT-Date: 1715109581 2024/05/07 19:19:41 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.109 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2013. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -994,6 +994,7 @@ clear_bypasses(void)
|
||||
clear_bypass(gm.migrating_objs);
|
||||
clear_bypass(gl.level.buriedobjlist);
|
||||
clear_bypass(gb.billobjs);
|
||||
clear_bypass(go.objs_deleted);
|
||||
for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) {
|
||||
if (DEADMONSTER(mtmp))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user