Allow suppressing debugfuzzer warnings

This commit is contained in:
Pasi Kallinen
2022-09-13 13:41:27 +03:00
parent 7ae4efb07c
commit 99e45e6daa

View File

@@ -1551,8 +1551,10 @@ wiz_panic(void)
static int static int
wiz_fuzzer(void) wiz_fuzzer(void)
{ {
pline("The fuzz tester will make NetHack execute random keypresses."); if (flags.suppress_alert < FEATURE_NOTICE_VER(3,7,0)) {
pline("There is no conventional way out of this mode."); pline("The fuzz tester will make NetHack execute random keypresses.");
pline("There is no conventional way out of this mode.");
}
if (paranoid_query(TRUE, "Do you want to start fuzz testing?")) if (paranoid_query(TRUE, "Do you want to start fuzz testing?"))
iflags.debug_fuzzer = TRUE; /* Thoth, take the reins */ iflags.debug_fuzzer = TRUE; /* Thoth, take the reins */
return ECMD_OK; return ECMD_OK;