another wishing gender processing tweak

This commit is contained in:
nhmall
2020-12-27 22:38:41 -05:00
parent 242a59ac19
commit 1d063218d3
+3 -3
View File
@@ -2522,8 +2522,7 @@ struct _create_particular_data *d;
* With the introduction of male and female monster names * With the introduction of male and female monster names
* in 3.7, preserve that detail. * in 3.7, preserve that detail.
*/ */
if (gender_name_var != NEUTRAL) d->fem = gender_name_var;
d->fem = gender_name_var;
if (d->which >= LOW_PM) if (d->which >= LOW_PM)
return TRUE; /* got one */ return TRUE; /* got one */
d->monclass = name_to_monclass(bufp, &d->which); d->monclass = name_to_monclass(bufp, &d->which);
@@ -2578,7 +2577,8 @@ struct _create_particular_data *d;
else if (d->randmonst) else if (d->randmonst)
whichpm = rndmonst(); whichpm = rndmonst();
if (d->fem != -1 && !is_male(whichpm) && !is_female(whichpm)) if (d->fem != -1 && !is_male(whichpm) && !is_female(whichpm))
mmflags |= (d->fem == FEMALE) ? MM_FEMALE : MM_MALE; mmflags |= (d->fem == FEMALE) ? MM_FEMALE
: (d->fem == MALE) ? MM_MALE : 0;
mtmp = makemon(whichpm, u.ux, u.uy, mmflags); mtmp = makemon(whichpm, u.ux, u.uy, mmflags);
if (!mtmp) { if (!mtmp) {
/* quit trying if creation failed and is going to repeat */ /* quit trying if creation failed and is going to repeat */