X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=dungeon.c;h=e17e93c1eace177d93bf6e86c27dd10bed3be67d;hb=f6373dd32e4ed75b18c9c6fb7dfa103d4ef68891;hp=0fbd17e29c86a8df4f27b02221e785938600f4ab;hpb=1e59d6b476a7f7f7b169a99e4918a4a2a1afb9cb;p=open-adventure.git diff --git a/dungeon.c b/dungeon.c index 0fbd17e..e17e93c 100644 --- a/dungeon.c +++ b/dungeon.c @@ -30,7 +30,6 @@ static long OLDLOC; // Storage for what comes out of the database long LINUSE; long TRVS; -long CLSSES; long TRNVLS; long TABNDX; long HNTMAX; @@ -45,7 +44,6 @@ long COND[LOCSIZ + 1]; long KEY[LOCSIZ + 1]; long LOCSND[LOCSIZ + 1]; long LINES[LINSIZ + 1]; -long CVAL[CLSMAX + 1]; long TTEXT[TRNSIZ + 1]; long TRNVAL[TRNSIZ + 1]; long TRAVEL[TRVSIZ + 1]; @@ -228,11 +226,7 @@ static void read_messages(FILE* database, long sect) continue; } if (sect == 10) { - CLSSES = CLSSES + 1; - if (CLSSES > CLSMAX) - BUG(TOO_MANY_CLASS_OR_TURN_MESSAGES); - CTEXT[CLSSES] = LINUSE; - CVAL[CLSSES] = loc; + /* now parsed from YAML */ continue; } if (sect == 6) { @@ -398,7 +392,6 @@ static int read_database(FILE* database) LINUSE = 1; TRVS = 1; - CLSSES = 0; TRNVLS = 0; /* Start new data section. Sect is the section number. */ @@ -529,7 +522,6 @@ static void write_file(FILE* header_file) write_1d(header_file, COND, LOCSIZ + 1, "COND"); write_1d(header_file, KEY, LOCSIZ + 1, "KEY"); write_1d(header_file, LOCSND, LOCSIZ + 1, "LOCSND"); - write_1d(header_file, CVAL, CLSMAX + 1, "CVAL"); write_1d(header_file, TRAVEL, TRVSIZ + 1, "TRAVEL"); write_1d(header_file, KTAB, TABSIZ + 1, "KTAB"); write_1d(header_file, ATAB, TABSIZ + 1, "ATAB");