Make #wizgenesis ignore debug_mongen blocking

Explicitly creating monsters in wizard-mode should go through
and not get blocked by the debug_mongen flag.
This commit is contained in:
Pasi Kallinen
2022-08-20 21:45:21 +03:00
parent 7ab1ac0a19
commit 54bff58598

View File

@@ -1223,9 +1223,13 @@ wiz_map(void)
static int
wiz_genesis(void)
{
if (wizard)
if (wizard) {
boolean mongen_saved = iflags.debug_mongen;
iflags.debug_mongen = FALSE;
(void) create_particular();
else
iflags.debug_mongen = mongen_saved;
} else
pline(unavailcmd, ecname_from_fn(wiz_genesis));
return ECMD_OK;
}