more expanded-glyphs follow-up

relocate reset_glyphmap() call to more appropriate location
valley and mines unaligned altars are included in the level-specfic
colorization
This commit is contained in:
nhmall
2021-09-22 14:20:41 -04:00
parent fb37493f4a
commit c8c08a6aec
3 changed files with 7 additions and 4 deletions

View File

@@ -896,7 +896,7 @@ enum zap_colors {
enum altar_colors {
altar_color_unaligned = CLR_RED,
#if 0
#if defined(USE_GENERAL_ALTAR_COLORS)
/* On OSX with TERM=xterm-color256 these render as
* white -> tty: gray, curses: ok
* gray -> both tty and curses: black

View File

@@ -2334,7 +2334,10 @@ reset_glyphmap(enum glyphmap_change_triggers trigger)
if (Is_rogue_level(&u.uz)) {
g.glyphmap_perlevel_flags |= GMAP_ROGUELEVEL;
} else if ((Is_astralevel(&u.uz) || Is_sanctum(&u.uz))) {
} else if (Is_astralevel(&u.uz)
|| Is_sanctum(&u.uz)
|| In_mines(&u.uz)
|| Is_valley(&u.uz)) {
g.glyphmap_perlevel_flags |= GMAP_ALTARCOLOR;
}
}

View File

@@ -1455,7 +1455,6 @@ goto_level(
if (Is_rogue_level(newlevel) || Is_rogue_level(&u.uz))
assign_graphics(Is_rogue_level(newlevel) ? ROGUESET : PRIMARY);
reset_glyphmap(gm_levelchange);
check_gold_symbol();
/* record this level transition as a potential seen branch unless using
* some non-standard means of transportation (level teleport).
@@ -1637,7 +1636,8 @@ goto_level(
/* Reset the screen. */
vision_reset(); /* reset the blockages */
g.glyphmap_perlevel_flags = 0L; /* force per-level map_glyphinfo() changes */
docrt(); /* does a full vision recalc */
reset_glyphmap(gm_levelchange);
docrt(); /* does a full vision recalc */
flush_screen(-1);
/*