Merge branch 'master' into win32-x64-working
Conflicts: include/extern.h src/do.c src/mon.c Changes to be committed: modified: include/extern.h modified: src/ball.c modified: src/do.c modified: src/eat.c modified: src/hack.c modified: src/invent.c modified: src/lock.c modified: src/mon.c modified: src/pickup.c modified: src/pline.c modified: src/save.c modified: src/sp_lev.c modified: src/steed.c modified: src/trap.c modified: src/uhitm.c
This commit is contained in:
10
src/sp_lev.c
10
src/sp_lev.c
@@ -1498,14 +1498,8 @@ struct mkroom *croom;
|
||||
if ((mndx != NON_PM) && (&mons[mndx] != mtmp->data)) {
|
||||
struct permonst *mdat = &mons[mndx];
|
||||
struct permonst *olddata = mtmp->data;
|
||||
/* this code duplicated from newcham() */
|
||||
if(is_male(mdat)) {
|
||||
if(mtmp->female) mtmp->female = FALSE;
|
||||
} else if (is_female(mdat)) {
|
||||
if(!mtmp->female) mtmp->female = TRUE;
|
||||
} else if (!is_neuter(mdat)) {
|
||||
if(!rn2(10)) mtmp->female = !mtmp->female;
|
||||
}
|
||||
|
||||
mgender_from_permonst(mtmp, mdat);
|
||||
set_mon_data(mtmp, mdat, 0);
|
||||
if (emits_light(olddata) != emits_light(mtmp->data)) {
|
||||
/* used to give light, now doesn't, or vice versa,
|
||||
|
||||
Reference in New Issue
Block a user