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:
@@ -1223,9 +1223,13 @@ wiz_map(void)
|
|||||||
static int
|
static int
|
||||||
wiz_genesis(void)
|
wiz_genesis(void)
|
||||||
{
|
{
|
||||||
if (wizard)
|
if (wizard) {
|
||||||
|
boolean mongen_saved = iflags.debug_mongen;
|
||||||
|
|
||||||
|
iflags.debug_mongen = FALSE;
|
||||||
(void) create_particular();
|
(void) create_particular();
|
||||||
else
|
iflags.debug_mongen = mongen_saved;
|
||||||
|
} else
|
||||||
pline(unavailcmd, ecname_from_fn(wiz_genesis));
|
pline(unavailcmd, ecname_from_fn(wiz_genesis));
|
||||||
return ECMD_OK;
|
return ECMD_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user