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

@@ -159,8 +159,8 @@ struct context_info {
boolean move;
boolean mv;
boolean bypasses; /* bypass flag is set on at least one fobj */
boolean botl; /* partially redo status line */
boolean botlx; /* print an entirely new bottom line */
boolean placeholder1;
boolean placeholder2;
boolean door_opened; /* set to true if door was opened during test_move */
boolean tips[NUM_TIPS];
struct dig_info digging;

View File

@@ -115,6 +115,13 @@ extern struct tc_gbl_data { /* also declared in tcap.h */
extern const char *ARGV0;
#endif
struct display_hints {
boolean botl; /* partially redo status line */
boolean botlx; /* print an entirely new bottom line */
boolean time_botl; /* context.botl for 'time' (moves) only */
};
extern struct display_hints display;
/*
* 'gX' -- instance_globals holds engine state that does not need to be
* persisted upon game exit. The initialization state is well defined

View File

@@ -340,7 +340,6 @@ struct instance_flags {
#endif
boolean cmdassist; /* provide detailed assistance for some comnds */
boolean fireassist; /* autowield launcher when using fire-command */
boolean time_botl; /* context.botl for 'time' (moves) only */
boolean wizweight; /* display weight of everything in wizard mode */
boolean wizmgender; /* test gender info from core in window port */
/*