From: nhmall Date: Thu, 24 Mar 2022 02:01:01 +0000 (-0400) Subject: giant ant tiles or right side of msdos display X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5478baa6ee8c5c5b5ca2aa44bf350056a30cb054;p=nethack giant ant tiles or right side of msdos display --- diff --git a/sys/msdos/vidvesa.c b/sys/msdos/vidvesa.c index 83e983169..a39c08e28 100644 --- a/sys/msdos/vidvesa.c +++ b/sys/msdos/vidvesa.c @@ -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 diff --git a/sys/msdos/vidvga.c b/sys/msdos/vidvga.c index 451a06695..d77b16995 100644 --- a/sys/msdos/vidvga.c +++ b/sys/msdos/vidvga.c @@ -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