issue #531 followup

Set gender before creating monster rather than after the fact
to force display to show it correctly.
This commit is contained in:
PatR
2021-06-08 16:38:43 -07:00
parent 710efe4175
commit cfc4f24c8e
3 changed files with 26 additions and 28 deletions

View File

@@ -1421,9 +1421,9 @@ corpse_xname(
/* avoid "aligned priest"; it just exposes internal details */
mnam = "priest";
} else {
int cspe = (otmp->spe & CORPSTAT_GENDER),
mgend = (cspe == CORPSTAT_FEMALE) ? FEMALE
: (cspe == CORPSTAT_MALE) ? MALE
int cgend = (otmp->spe & CORPSTAT_GENDER),
mgend = (cgend == CORPSTAT_FEMALE) ? FEMALE
: (cgend == CORPSTAT_MALE) ? MALE
: NEUTRAL;
mnam = pmname(&mons[omndx], mgend);