a flag to track if vision is ready
- new iflags.vision_inited to determine if vision is ready to go. - the flag is set the first time vision_reset() completes, actually every time - vision_recalc() checks the flag before doing anything.
This commit is contained in:
@@ -163,6 +163,7 @@ struct instance_flags {
|
||||
boolean num_pad; /* use numbers for movement commands */
|
||||
boolean news; /* print news */
|
||||
boolean window_inited; /* true if init_nhwindows() completed */
|
||||
boolean vision_inited; /* true if vision is ready */
|
||||
boolean menu_tab_sep; /* Use tabs to separate option menu fields */
|
||||
int purge_monsters; /* # of dead monsters still on fmon list */
|
||||
int *opt_booldup; /* for duplication of boolean opts in config file */
|
||||
|
||||
Reference in New Issue
Block a user