Structurize locatiuon info.

This commit is contained in:
Eric S. Raymond 2023-04-07 09:30:33 -04:00
parent ff9c73a37d
commit 8fe07c8bf3
6 changed files with 27 additions and 25 deletions

View file

@ -182,8 +182,10 @@ struct game_t {
turn_t trnluz; // # points lost so far due to turns used
turn_t turns; // counts commands given (ignores yes/no)
char zzword[TOKLEN + 1]; // randomly generated magic word from bird
int abbrev[NLOCATIONS + 1]; // has location been seen?
int atloc[NLOCATIONS + 1]; // head of object linked list per location
struct {
int abbrev; // has location been seen?
int atloc; // head of object linked list per location
} locs[NLOCATIONS + 1];
struct {
int seen; // true if dwarf has seen him
loc_t loc; // location of dwarves, initially hard-wired in