clear "next" from "next boulder" sooner
Clear "next" boulder so that when pushing a pile of boulders, only the first message for each of the 2nd, 3rd, &c will be formatted as "next boulder". If any of them trigger additional messages, those messages will use normal "boulder".
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 mkobj.c $NHDT-Date: 1725138481 2024/08/31 21:08:01 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.304 $ */
|
||||
/* NetHack 3.7 mkobj.c $NHDT-Date: 1737528890 2025/01/21 22:54:50 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.315 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Derek S. Ray, 2015. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -2673,6 +2673,8 @@ container_weight(struct obj *object)
|
||||
void
|
||||
dealloc_obj(struct obj *obj)
|
||||
{
|
||||
if (obj->otyp == BOULDER)
|
||||
obj->next_boulder = 0;
|
||||
if (obj->where == OBJ_DELETED) {
|
||||
impossible("dealloc_obj: obj already deleted (type=%d)", obj->otyp);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user