Move more globals into the state structure.

This commit is contained in:
Eric S. Raymond 2017-05-23 19:40:34 -04:00
parent 42189d79d7
commit fa1f859162
6 changed files with 68 additions and 59 deletions

8
main.h
View file

@ -32,8 +32,16 @@ struct game_t {
long lmwarn;
/* LOC will go here */
long newloc;
/* OBJ will go here */
long numdie;
long oldlc2;
long oldloc;
long oldobj;
long panic;
long saved;
/* more state will go here */
long wzdark;
/* more state will go here */
long novice;
};
extern struct game_t game;