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:
parent
da883d53c0
commit
1322a347ae
4 changed files with 792 additions and 388 deletions
2
init.c
2
init.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue