Change the name of the KEY array to avoid an upcoming macro clash.
This commit is contained in:
parent
59243cf8bc
commit
d612b0e6ca
3 changed files with 11 additions and 11 deletions
10
dungeon.c
10
dungeon.c
|
@ -91,7 +91,7 @@ static long LINUSE;
|
|||
long TRVS;
|
||||
long TRNVLS;
|
||||
long TABNDX;
|
||||
long KEY[NLOCATIONS + 1];
|
||||
long TKEY[NLOCATIONS + 1];
|
||||
long LINES[LINSIZ + 1];
|
||||
long TRAVEL[TRVSIZ + 1];
|
||||
long KTAB[TABSIZ + 1];
|
||||
|
@ -254,8 +254,8 @@ static void read_section3_stuff(FILE* database)
|
|||
while ((loc = GETNUM(database)) != -1) {
|
||||
long newloc = GETNUM(NULL);
|
||||
long L;
|
||||
if (KEY[loc] == 0) {
|
||||
KEY[loc] = TRVS;
|
||||
if (TKEY[loc] == 0) {
|
||||
TKEY[loc] = TRVS;
|
||||
} else {
|
||||
TRAVEL[TRVS - 1] = -TRAVEL[TRVS - 1];
|
||||
}
|
||||
|
@ -348,7 +348,7 @@ static int read_database(FILE* database)
|
|||
* message for game.prop(N)=0. Successive prop messages are
|
||||
* found by chasing pointers. */
|
||||
for (int I = 1; I <= NLOCATIONS; I++) {
|
||||
KEY[I] = 0;
|
||||
TKEY[I] = 0;
|
||||
}
|
||||
|
||||
LINUSE = 1;
|
||||
|
@ -457,7 +457,7 @@ static void write_file(FILE* header_file)
|
|||
fprintf(header_file, "\n");
|
||||
|
||||
// content variables
|
||||
write_1d(header_file, KEY, NLOCATIONS + 1, "KEY");
|
||||
write_1d(header_file, TKEY, NLOCATIONS + 1, "TKEY");
|
||||
write_1d(header_file, TRAVEL, TRVSIZ + 1, "TRAVEL");
|
||||
write_1d(header_file, KTAB, TABSIZ + 1, "KTAB");
|
||||
write_1d(header_file, ATAB, TABSIZ + 1, "ATAB");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue