]> granicus.if.org Git - nethack/commitdiff
giant ant tiles or right side of msdos display
authornhmall <nhmall@nethack.org>
Thu, 24 Mar 2022 02:01:01 +0000 (22:01 -0400)
committernhmall <nhmall@nethack.org>
Thu, 24 Mar 2022 02:01:01 +0000 (22:01 -0400)
sys/msdos/vidvesa.c
sys/msdos/vidvga.c

index 83e9831695cab694b892a8d565cba66d2c96ad15..a39c08e287bf228395fdb29bd42fb52d68344c4c 100644 (file)
@@ -19,8 +19,7 @@
 
 #define FIRST_TEXT_COLOR 240
 
-extern int total_tiles_used; /* tile.c */
-
+extern int total_tiles_used, Tile_corr, Tile_unexplored;  /* from tile.c */
 struct VesaCharacter {
     int colour;
     int chr;
@@ -88,16 +87,17 @@ static struct map_struct {
     short int tileidx;
 } map[ROWNO][COLNO]; /* track the glyphs */
 
-#define vesa_clearmap()                                   \
-    {                                                     \
-        int x, y;                                         \
-        for (y = 0; y < ROWNO; ++y)                       \
-            for (x = 0; x < COLNO; ++x) {                 \
-                map[y][x].glyph = cmap_to_glyph(S_stone); \
-                map[y][x].ch = S_stone;                   \
-                map[y][x].attr = 0;                       \
-                map[y][x].special = 0;                    \
-            }                                             \
+#define vesa_clearmap()                                         \
+    {                                                           \
+        int x, y;                                               \
+        for (y = 0; y < ROWNO; ++y)                             \
+            for (x = 0; x < COLNO; ++x) {                       \
+                map[y][x].glyph = GLYPH_UNEXPLORED;             \
+                map[y][x].ch = glyph2ttychar(GLYPH_UNEXPLORED); \
+                map[y][x].attr = 0;                             \
+                map[y][x].special = 0;                          \
+                map[y][x].tileidx = Tile_unexplored;            \
+            }                                                   \
     }
 #define TOP_MAP_ROW 1
 
index 451a0669545f183b31c1d4411ac7d7109820dbed..d77b16995c84739c7633b39a7ac281a21f0e6fa6 100644 (file)
@@ -158,17 +158,19 @@ static struct map_struct {
     short int tileidx;
 } map[ROWNO][COLNO]; /* track the glyphs */
 
-#define vga_clearmap()                                    \
-    {                                                     \
-        int x, y;                                         \
-        for (y = 0; y < ROWNO; ++y)                       \
-            for (x = 0; x < COLNO; ++x) {                 \
-                map[y][x].glyph = cmap_to_glyph(S_stone); \
-                map[y][x].ch = S_stone;                   \
-                map[y][x].attr = 0;                       \
-                map[y][x].special = 0;                    \
-                map[y][x].tileidx = 0;                    \
-            }                                             \
+extern int total_tiles_used, Tile_corr, Tile_unexplored;  /* from tile.c */
+
+#define vga_clearmap()                                          \
+    {                                                           \
+        int x, y;                                               \
+        for (y = 0; y < ROWNO; ++y)                             \
+            for (x = 0; x < COLNO; ++x) {                       \
+                map[y][x].glyph = GLYPH_UNEXPLORED;             \
+                map[y][x].ch = glyph2ttychar(GLYPH_UNEXPLORED); \
+                map[y][x].attr = 0;                             \
+                map[y][x].special = 0;                          \
+                map[y][x].tileidx = Tile_unexplored;            \
+            }                                                   \
     }
 #define TOP_MAP_ROW 1