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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
4
src/do.c
4
src/do.c
@@ -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);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user