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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user