Begin gathering saveable game state into a structure. Not yet complete.
No logic changes. A bunch of globals turn into fields (with the same names except for lowercasing) in struct game_t. Eventually this will allow drastic simplification of the save/load logic.
This commit is contained in:
parent
dc9d9e467b
commit
42189d79d7
11 changed files with 260 additions and 231 deletions
2
funcs.h
2
funcs.h
|
@ -28,7 +28,7 @@
|
|||
#define FOREST(LOC) ((LOC) >= 145 && (LOC) <= 166)
|
||||
#define VOCWRD(LETTRS,SECT) (VOCAB(MAKEWD(LETTRS),SECT))
|
||||
|
||||
/* The following two functions were added to fix a bug (CLOCK1 decremented
|
||||
/* The following two functions were added to fix a bug (game.clock1 decremented
|
||||
* while in forest). They should probably be replaced by using another
|
||||
* "cond" bit. For now, however, a quick fix... OUTSID(LOC) is true if
|
||||
* LOC is outside, INDEEP(LOC) is true if LOC is "deep" in the cave (hall
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue