giant ant tiles or right side of msdos display

This commit is contained in:
nhmall
2022-03-23 22:01:01 -04:00
parent 27b1c38c50
commit 5478baa6ee
2 changed files with 25 additions and 23 deletions

View 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

View 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