Put the long and short location descriptions into a 'locations' data structure.

They're renamed 'small' and 'big' to avoid colliding with C reserved words.
This commit is contained in:
Jason S. Ninneman 2017-06-14 16:45:49 -07:00
parent da883d53c0
commit 1322a347ae
4 changed files with 792 additions and 388 deletions

2
init.c
View file

@ -184,7 +184,7 @@ void initialise(void)
for (i=1; i<=LOCSIZ; i++) {
game.abbrev[i]=0;
if (!(long_location_descriptions[i] == 0 || KEY[i] == 0)) {
if (!(locations[i].description.big == 0 || KEY[i] == 0)) {
k=KEY[i];
if(MOD(labs(TRAVEL[k]),1000) == 1)COND[i]=2;
}