From 54bff585986d94a468dc4f1d644c06943de906ae Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 20 Aug 2022 21:45:21 +0300 Subject: [PATCH] Make #wizgenesis ignore debug_mongen blocking Explicitly creating monsters in wizard-mode should go through and not get blocked by the debug_mongen flag. --- src/cmd.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/cmd.c b/src/cmd.c index 6e859a769..110324c8b 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -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; }