fix #H4472 & #H4473 - incorrect total_tiles_used

The value calculated for total_tiles_used never got adjusted for
displaying statues-as-monsters.  The most common configuration(s)
using tiles don't care, but the combination of X11 plus USE_XPM
needs an accurate value there.
This commit is contained in:
PatR
2016-08-06 19:30:44 -07:00
parent 7f8e8293f9
commit 62fd796271
2 changed files with 12 additions and 3 deletions
+8 -3
View File
@@ -1,4 +1,4 @@
/* NetHack 3.6 tilemap.c $NHDT-Date: 1465163425 2016/06/05 21:50:25 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.30 $ */
/* NetHack 3.6 tilemap.c $NHDT-Date: 1470537037 2016/08/07 02:30:37 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.32 $ */
/* NetHack may be freely redistributed. See license for details. */
/*
@@ -464,8 +464,11 @@ FILE *ofp;
fprintf(ofp, "%s\n", epilog[i]);
}
fprintf(ofp, "\nint total_tiles_used = %d;\n", start);
lastothtile = start - 1;
#ifdef STATUES_LOOK_LIKE_MONSTERS
start = laststatuetile + 1;
#endif
fprintf(ofp, "\nint total_tiles_used = %d;\n", start);
}
int
@@ -500,7 +503,9 @@ main()
fprintf(ofp, "\n#define MAXMONTILE %d\n", lastmontile);
fprintf(ofp, "#define MAXOBJTILE %d\n", lastobjtile);
fprintf(ofp, "#define MAXOTHTILE %d\n", lastothtile);
#ifdef STATUES_LOOK_LIKE_MONSTERS
fprintf(ofp, "/* #define MAXSTATUETILE %d */\n", laststatuetile);
#endif
fprintf(ofp, "\n/*tile.c*/\n");
fclose(ofp);