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:
@@ -428,7 +428,6 @@ extern void end_of_input(void);
|
||||
#endif
|
||||
extern char readchar(void);
|
||||
extern char readchar_poskey(coordxy *, coordxy *, int *);
|
||||
extern void sanity_check(void);
|
||||
extern char* key2txt(uchar, char *);
|
||||
extern char yn_function(const char *, const char *, char, boolean);
|
||||
extern char paranoid_ynq(boolean, const char *, boolean);
|
||||
@@ -3743,6 +3742,7 @@ extern void wizcustom_callback(winid win, int glyphnum, char *id);
|
||||
extern int wiz_display_macros(void);
|
||||
extern int wiz_mon_diff(void);
|
||||
#endif
|
||||
extern void sanity_check(void);
|
||||
|
||||
/* ### worm.c ### */
|
||||
|
||||
|
||||
@@ -783,6 +783,7 @@ struct sinfo {
|
||||
int in_parseoptions; /* in parseoptions */
|
||||
int in_role_selection; /* role/race/&c selection menus in progress */
|
||||
int in_getlin; /* inside interface getlin routine */
|
||||
int in_sanity_check; /* for impossible() during sanity checking */
|
||||
int config_error_ready; /* config_error_add is ready, available */
|
||||
int beyond_savefile_load; /* set when past savefile loading */
|
||||
#ifdef PANICLOG
|
||||
|
||||
Reference in New Issue
Block a user