bundle the display-related hints, that tell bot() and others

that an update is required, into a struct. Remove it from
context since there is no reason to save those.
This commit is contained in:
nhmall
2024-01-04 23:16:27 -05:00
parent 9bcff7b896
commit 22e52ee905
46 changed files with 246 additions and 238 deletions

View File

@@ -1206,7 +1206,7 @@ savelife(int how)
if (u.utrap && u.utraptype == TT_LAVA)
reset_utrap(FALSE);
gc.context.botl = TRUE;
display.botl = TRUE;
u.ugrave_arise = NON_PM;
HUnchanging = 0L;
curs_on_u();
@@ -1501,10 +1501,10 @@ done(int how)
|| (how == QUIT && done_stopprint)) {
/* skip status update if panicking or disconnected
or answer of 'q' to "Really quit?" */
gc.context.botl = gc.context.botlx = iflags.time_botl = FALSE;
display.botl = display.botlx = display.time_botl = FALSE;
} else {
/* otherwise force full status update */
gc.context.botlx = TRUE;
display.botlx = TRUE;
bot();
}
@@ -1537,7 +1537,7 @@ done(int how)
negative (-1 is used as a flag in some circumstances
which don't apply when actually dying due to HP loss) */
u.uhp = u.mh = 0;
gc.context.botl = 1;
display.botl = 1;
}
}
if (Lifesaved && (how <= GENOCIDED)) {