]> granicus.if.org Git - nethack/commitdiff
two minor core changes for hypothetical Amiga cross port
authornhmall <nhmall@nethack.org>
Tue, 1 Feb 2022 22:11:35 +0000 (17:11 -0500)
committernhmall <nhmall@nethack.org>
Tue, 1 Feb 2022 22:11:35 +0000 (17:11 -0500)
The tilemap change provides three variables that used to be
uppercase compile macros in the past, and Amiga (and other ports?) used
them.

The other change just uncomments the header file include.

include/global.h
win/share/tilemap.c

index 12ae0c06ce6fb8ba1554d0199ba3db7669880d5b..7ee316945064c0bc381a1622ac2eb07cd1effb80 100644 (file)
@@ -147,7 +147,7 @@ typedef uchar nhsym;
 /* amiconf.h needs to be the last nested #include of config.h because
    'make depend' will turn it into a comment, hiding anything after it */
 #ifdef AMIGA
-/*#include "amiconf.h"*/
+#include "amiconf.h"
 #endif
 
 /* Displayable name of this port; don't redefine if defined in *conf.h */
index ed9d296a0badac47cf9fd1dea4874dd9b6c68b31..5d35ac82877356cf46fa3799bc3116c8aa5a0385 100644 (file)
@@ -1337,7 +1337,10 @@ main(int argc UNUSED, char *argv[] UNUSED)
     Fprintf(ofp, "\nint total_tiles_used = %d,\n", laststatuetile + 1);
     Fprintf(ofp, "%sTile_corr = %d,\n", indent, TILE_corr);       /* X11 references it */
     Fprintf(ofp, "%sTile_stone = %d,\n",  indent, TILE_stone);
-    Fprintf(ofp, "%sTile_unexplored = %d;\n\n",  indent, TILE_unexplored);
+    Fprintf(ofp, "%sTile_unexplored = %d;\n",  indent, TILE_unexplored);
+    Fprintf(ofp, "%smaxmontile = %d;\n", indent, lastmontile);
+    Fprintf(ofp, "%smaxobjtile = %d;\n", indent, lastobjtile);
+    Fprintf(ofp, "%smaxothtile = %d;\n\n", indent, lastothtile);
     Fprintf(ofp,
       "/* glyph, ttychar, { color, symidx, ovidx, glyphflags, tileidx} */\n");
     Fprintf(ofp, "const glyph_info nul_glyphinfo = { \n");