From 420afb6b1f86aeb37e5227ade1f9b8ea855dc35e Mon Sep 17 00:00:00 2001 From: PatR Date: Fri, 17 Dec 2021 16:29:53 -0800 Subject: [PATCH] fixes entry for pull-req #643 - historic statues monstone() was using a hardcoded value when flagging the statue of a unique monster as historic and didn't get updated when the corpse and statue flags kept in obj->spe were changed last June by commit 04a8ddcce1f2c679706a0e9413f742677dbb0f68. Closes #643 --- doc/fixes37.0 | 3 +++ src/mon.c | 1 + 2 files changed, 4 insertions(+) diff --git a/doc/fixes37.0 b/doc/fixes37.0 index eff95f2c4..a84f301f6 100644 --- a/doc/fixes37.0 +++ b/doc/fixes37.0 @@ -927,6 +927,9 @@ in wizard mode, a poly'd priest/priestess attempting to polymorph into priest because "priest" matched "aligned cleric" rather than the role monster if a glob which has just shrunk away to nothing was wielded or quivered, unwield it before destroying it +after changes to gender tracking for corpses and statues, when a unique + monster got turned into a statue if was erroneouly flagged as female + rather than 'historic' curses: 'msg_window' option wasn't functional for curses unless the binary also included tty support diff --git a/src/mon.c b/src/mon.c index d01f1095d..998fac1a9 100644 --- a/src/mon.c +++ b/src/mon.c @@ -2696,6 +2696,7 @@ monstone(struct monst* mdef) if ((int) mdef->data->msize > MZ_TINY || !rn2(2 + ((int) (mdef->data->geno & G_FREQ) > 2))) { unsigned corpstatflags = CORPSTAT_NONE; + oldminvent = 0; /* some objects may end up outside the statue */ while ((obj = mdef->minvent) != 0) {