From 226157004bb9d095b256af73aa8a52bdd5ba37b3 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Wed, 11 Mar 2026 17:35:08 +0200 Subject: [PATCH] Make migratemons ignore debug_mongen Same as wizgenesis, migratemons should create monsters even when random monster generation is disabled. --- src/wizcmds.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wizcmds.c b/src/wizcmds.c index 8c14b98f7..31cb338cc 100644 --- a/src/wizcmds.c +++ b/src/wizcmds.c @@ -1832,6 +1832,7 @@ wiz_migrate_mons(void) struct permonst *ptr; struct monst *mtmp; boolean use_random_mon = TRUE; + boolean mongen_saved = iflags.debug_mongen; #endif d_level tolevel; @@ -1864,6 +1865,7 @@ wiz_migrate_mons(void) else if (mcount > ((COLNO - 1) * ROWNO)) mcount = (COLNO - 1) * ROWNO; + iflags.debug_mongen = FALSE; while (mcount > 0) { if (use_random_mon) { ptr = rndmonst(); @@ -1876,6 +1878,7 @@ wiz_migrate_mons(void) (coord *) 0); mcount--; } + iflags.debug_mongen = mongen_saved; #endif /* DEBUG_MIGRATING_MONS */ return ECMD_OK; }