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
04a8ddcce1.

Closes #643
This commit is contained in:
PatR
2021-12-17 16:29:53 -08:00
parent 4b20ed6211
commit 420afb6b1f
2 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -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) {