From 8f4c2d2a82d123cc36708e717b8347c53442e4de Mon Sep 17 00:00:00 2001 From: PatR Date: Sat, 17 Nov 2018 16:31:22 -0800 Subject: [PATCH] formatting: tile.c A while back I changed tilemap.c to clean up the formatting of generated tile.c. This is a smaller change to revise the layout of its big array. --- win/share/tilemap.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/win/share/tilemap.c b/win/share/tilemap.c index e2ec90e40..f859f44e8 100644 --- a/win/share/tilemap.c +++ b/win/share/tilemap.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 tilemap.c $NHDT-Date: 1524689272 2018/04/25 20:47:52 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.33 $ */ +/* NetHack 3.6 tilemap.c $NHDT-Date: 1542501042 2018/11/18 00:30:42 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.35 $ */ /* Copyright (c) 2016 by Michael Allison */ /* NetHack may be freely redistributed. See license for details. */ @@ -497,9 +497,11 @@ main() Fprintf(ofp, "\nshort glyph2tile[MAX_GLYPH] = {\n"); for (i = 0; i < MAX_GLYPH; i++) { - Fprintf(ofp, "%2d,%c", tilemap[i], (i % 12) ? ' ' : '\n'); + Fprintf(ofp, " %4d,", tilemap[i]); + if ((i % 12) == 11 || i == MAX_GLYPH - 1) + Fprintf(ofp, "\n"); } - Fprintf(ofp, "\n};\n"); + Fprintf(ofp, "};\n"); process_substitutions(ofp); -- 2.40.0