obj->where == OBJ_DELETED
The list of possible object locations used when formatting obj->where wasn't updated when the objs_deleted list was introduced. If object sanity checking ever tried to report it for something, it would have been described as "unknown[9]" rather than as the intended "deleted".
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/* NetHack 3.7 obj.h $NHDT-Date: 1633802062 2021/10/09 17:54:22 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.94 $ */
|
/* NetHack 3.7 obj.h $NHDT-Date: 1718999845 2024/06/21 19:57:25 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.116 $ */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/*-Copyright (c) Michael Allison, 2006. */
|
/*-Copyright (c) Michael Allison, 2006. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
@@ -82,6 +82,8 @@ struct obj {
|
|||||||
#define OBJ_ONBILL 7 /* object on shk bill */
|
#define OBJ_ONBILL 7 /* object on shk bill */
|
||||||
#define OBJ_LUAFREE 8 /* object has been dealloc'd, but is ref'd by lua */
|
#define OBJ_LUAFREE 8 /* object has been dealloc'd, but is ref'd by lua */
|
||||||
#define OBJ_DELETED 9 /* object is marked for deletion by dobjsfree() */
|
#define OBJ_DELETED 9 /* object is marked for deletion by dobjsfree() */
|
||||||
|
/* note: OBJ_xxx values are used in obj_state_names[] in mkobj.c
|
||||||
|
so adding, removing, or renumbering these needs to change that too */
|
||||||
#define NOBJ_STATES 10
|
#define NOBJ_STATES 10
|
||||||
xint16 timed; /* # of fuses (timers) attached to this obj */
|
xint16 timed; /* # of fuses (timers) attached to this obj */
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* NetHack 3.7 mkobj.c $NHDT-Date: 1715109575 2024/05/07 19:19:35 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.296 $ */
|
/* NetHack 3.7 mkobj.c $NHDT-Date: 1718999849 2024/06/21 19:57:29 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.299 $ */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/*-Copyright (c) Derek S. Ray, 2015. */
|
/*-Copyright (c) Derek S. Ray, 2015. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
@@ -3185,7 +3185,7 @@ nomerge_exception(struct obj *obj)
|
|||||||
static const char *const obj_state_names[NOBJ_STATES] = {
|
static const char *const obj_state_names[NOBJ_STATES] = {
|
||||||
"free", "floor", "contained", "invent",
|
"free", "floor", "contained", "invent",
|
||||||
"minvent", "migrating", "buried", "onbill",
|
"minvent", "migrating", "buried", "onbill",
|
||||||
"luafree"
|
"luafree", "deleted",
|
||||||
};
|
};
|
||||||
|
|
||||||
staticfn const char *
|
staticfn const char *
|
||||||
|
|||||||
Reference in New Issue
Block a user