include clearing of MON_ENDGAME_FREE, MON_ENDGAME_MIGR bits in place_monster

Issue reported by @ars3niy

Fix #1647
This commit is contained in:
nhmall
2026-07-30 21:58:42 -04:00
parent 5f1183d1ef
commit 59080106b9
+3 -3
View File
@@ -935,11 +935,11 @@ place_monster(struct monst *mon, coordxy x, coordxy y)
bits that may be set. We'll probably make MON_FLOOR an bits that may be set. We'll probably make MON_FLOOR an
actual bit one day */ actual bit one day */
mon->mstate &= ~(MON_OFFMAP | MON_DETACH | MON_LIMBO | MON_MIGRATING); mon->mstate &= ~(MON_OFFMAP | MON_DETACH | MON_LIMBO | MON_MIGRATING
| MON_ENDGAME_FREE | MON_ENDGAME_MIGR);
/* We don't mess with these bits above: /* We don't mess with these bits above:
MON_BUBBLEMOVE | MON_ENDGAME_FREE | MON_ENDGAME_MIGR MON_BUBBLEMOVE | MON_OBLITERATE | MON_STILL_ARRIVING | MON_PARKED
| MON_OBLITERATE | MON_STILL_ARRIVING | MON_PARKED
*/ */
} }