follow-up, program_state

This commit is contained in:
nhmall
2024-07-13 16:31:35 -04:00
parent 72d2b0414c
commit 0eb7f109e0
67 changed files with 255 additions and 252 deletions

View File

@@ -763,16 +763,16 @@ doconsult(struct monst *oracl)
staticfn void
couldnt_open_file(const char *filename)
{
int save_something = svp.program_state.something_worth_saving;
int save_something = program_state.something_worth_saving;
/* most likely the file is missing, so suppress impossible()'s
"saving and restoring might fix this" (unless the fuzzer,
which escalates impossible to panic, is running) */
if (!iflags.debug_fuzzer)
svp.program_state.something_worth_saving = 0;
program_state.something_worth_saving = 0;
impossible("Can't open '%s' file.", filename);
svp.program_state.something_worth_saving = save_something;
program_state.something_worth_saving = save_something;
}
/* is 'word' a capitalized monster name that should be preceded by "the"?