less verbose sanity checking
If the 'sanity_check' option triggers a warning, don't show the "Program in disorder! (Save and restore might fix this.)" and "Report these messages to <devteam>." messages and also don't run the crash report submission. Doesn't affect the fuzzer because it escalates impossible() to panic() before reaching those extra messages.
This commit is contained in:
@@ -1435,6 +1435,7 @@ sanity_check(void)
|
||||
iflags.sanity_no_check = FALSE;
|
||||
return;
|
||||
}
|
||||
gp.program_state.in_sanity_check++;
|
||||
you_sanity_check();
|
||||
obj_sanity_check();
|
||||
timer_sanity_check();
|
||||
@@ -1443,6 +1444,7 @@ sanity_check(void)
|
||||
bc_sanity_check();
|
||||
trap_sanity_check();
|
||||
engraving_sanity_check();
|
||||
gp.program_state.in_sanity_check--;
|
||||
}
|
||||
|
||||
/* qsort() comparison routine for use in list_migrating_mons() */
|
||||
|
||||
Reference in New Issue
Block a user