Fix: zoo monsters spawning in hallways

If a random G_[SL]GROUP monster was generated in a zoo, the resulting
group of monsters could spill out into nearby hallways and other
surrounding areas.  Disregard G_GROUP flags when filling a zoo with
monsters to avoid this problem.
This commit is contained in:
Michael Meyer
2021-11-30 12:51:11 -08:00
committed by PatR
parent 7d84ea0605
commit ce2615a316
+1 -1
View File
@@ -340,7 +340,7 @@ fill_zoo(struct mkroom* sroom)
: (type == ANTHOLE) : (type == ANTHOLE)
? antholemon() ? antholemon()
: (struct permonst *) 0, : (struct permonst *) 0,
sx, sy, MM_ASLEEP); sx, sy, MM_ASLEEP | MM_NOGRP);
if (mon) { if (mon) {
mon->msleeping = 1; mon->msleeping = 1;
if (type == COURT && mon->mpeaceful) { if (type == COURT && mon->mpeaceful) {