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

@@ -194,7 +194,7 @@ bwrite(int fd, const genericptr_t loc, unsigned num)
}
if (failed) {
#if defined(HANGUPHANDLING)
if (svp.program_state.done_hup)
if (program_state.done_hup)
nh_terminate(EXIT_FAILURE);
else
#endif
@@ -230,7 +230,7 @@ mread(int fd, genericptr_t buf, unsigned len)
} else {
pline("Read %d instead of %u bytes.", (int) rlen, len);
display_nhwindow(WIN_MESSAGE, TRUE); /* flush before error() */
if (svp.program_state.restoring) {
if (program_state.restoring) {
(void) nhclose(fd);
(void) delete_savefile();
error("Error restoring old game.");