Store update disable flag in the game table to make it visible in
xdump: (gamestr): New member game_upd_disable. (game_ca): Update accordingly. (game_ctrl_update): New. (disa, enab): Use it. (updates_disabled): Rewrite and move to game.c (disablefil): Remove.
This commit is contained in:
parent
e7e8717e86
commit
286dda725e
8 changed files with 31 additions and 34 deletions
|
@ -40,6 +40,7 @@ struct gamestr {
|
|||
/* initial part must match struct empobj */
|
||||
short ef_type;
|
||||
/* end of part matching struct empobj */
|
||||
char game_upd_disable; /* updates disabled? */
|
||||
/*
|
||||
* The Empire clock.
|
||||
* Access it through game_tick_tick(), or else it'll be late.
|
||||
|
@ -52,6 +53,8 @@ struct gamestr {
|
|||
#define putgame() ef_write(EF_GAME, 0, ef_ptr(EF_GAME, 0))
|
||||
#define getgamep() ((struct gamestr *)ef_ptr(EF_GAME, 0))
|
||||
|
||||
extern void game_ctrl_update(int);
|
||||
extern int updates_disabled(void);
|
||||
extern void game_record_update(time_t);
|
||||
extern struct gamestr *game_tick_tick(void);
|
||||
extern int game_tick_to_now(short *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue