X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=dungeon.c;h=08f11b12c2bef227f45a656d42721b0cb5f70d26;hp=88f632d059c93f3e03c39ba0c9416d348edf015c;hb=3a93b2b5f08351c3e87d4f41c5c61273c42e9420;hpb=606b590c1e7205e678288c8ad800aba1f3c2edeb diff --git a/dungeon.c b/dungeon.c index 88f632d..08f11b1 100644 --- a/dungeon.c +++ b/dungeon.c @@ -30,7 +30,6 @@ long LINUSE; long TRVS; long TRNVLS; long TABNDX; -long OBJSND[NOBJECTS + 1]; long OBJTXT[NOBJECTS + 1]; long KEY[LOCSIZ + 1]; long LINES[LINSIZ + 1]; @@ -308,7 +307,6 @@ static void read_sound_text(FILE* database) long KK = GETNUM(NULL); long I = GETNUM(NULL); if (I != 0) { - OBJSND[K] = (KK > 0 ? KK : 0); OBJTXT[K] = (I > 0 ? I : 0); continue; } @@ -327,7 +325,6 @@ 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 <= NOBJECTS; I++) { - OBJSND[I] = 0; OBJTXT[I] = 0; } for (int I = 1; I <= LOCSIZ; I++) { @@ -440,7 +437,6 @@ static void write_file(FILE* header_file) fprintf(header_file, "\n"); // content variables - write_1d(header_file, OBJSND, NOBJECTS + 1, "OBJSND"); write_1d(header_file, OBJTXT, NOBJECTS + 1, "OBJTXT"); write_1d(header_file, KEY, LOCSIZ + 1, "KEY"); write_1d(header_file, TRAVEL, TRVSIZ + 1, "TRAVEL");