Make migratemons ignore debug_mongen

Same as wizgenesis, migratemons should create monsters even
when random monster generation is disabled.
This commit is contained in:
Pasi Kallinen
2026-03-11 17:35:23 +02:00
parent d6bff63025
commit 226157004b
+3
View File
@@ -1832,6 +1832,7 @@ wiz_migrate_mons(void)
struct permonst *ptr; struct permonst *ptr;
struct monst *mtmp; struct monst *mtmp;
boolean use_random_mon = TRUE; boolean use_random_mon = TRUE;
boolean mongen_saved = iflags.debug_mongen;
#endif #endif
d_level tolevel; d_level tolevel;
@@ -1864,6 +1865,7 @@ wiz_migrate_mons(void)
else if (mcount > ((COLNO - 1) * ROWNO)) else if (mcount > ((COLNO - 1) * ROWNO))
mcount = (COLNO - 1) * ROWNO; mcount = (COLNO - 1) * ROWNO;
iflags.debug_mongen = FALSE;
while (mcount > 0) { while (mcount > 0) {
if (use_random_mon) { if (use_random_mon) {
ptr = rndmonst(); ptr = rndmonst();
@@ -1876,6 +1878,7 @@ wiz_migrate_mons(void)
(coord *) 0); (coord *) 0);
mcount--; mcount--;
} }
iflags.debug_mongen = mongen_saved;
#endif /* DEBUG_MIGRATING_MONS */ #endif /* DEBUG_MIGRATING_MONS */
return ECMD_OK; return ECMD_OK;
} }