Remove some hard-coded array dimensions. Generate CLSSES at compile time.
[open-adventure.git] / dungeon.c
index 0c7ca63d499f08832f7466a7e2a5b70dc1e6da52..5d1a88d6d9edbb330beea5f04287deef66e1f620 100644 (file)
--- a/dungeon.c
+++ b/dungeon.c
@@ -200,7 +200,7 @@ void MAPLIN(FILE *OPENED) {
   LNLENG = 0;
   for (size_t i = 1; i <= sizeof(INLINE) && INLINE[i] != 0; ++i)
     {
-      char val = INLINE[i] + 1;
+      char val = INLINE[i];
       INLINE[i] = ascii_to_advent[(unsigned)val];
       if (INLINE[i] != 0)
        LNLENG = i;
@@ -582,7 +582,6 @@ void write_files(FILE* c_file, FILE* header_file)
   // content variables
   write_0d(c_file, header_file, LINUSE, "LINUSE");
   write_0d(c_file, header_file, TRVS, "TRVS");
-  write_0d(c_file, header_file, CLSSES, "CLSSES");
   write_0d(c_file, header_file, TRNVLS, "TRNVLS");
   write_0d(c_file, header_file, TABNDX, "TABNDX");
   write_0d(c_file, header_file, HNTMAX, "HNTMAX");