From: nhmall Date: Wed, 22 Sep 2021 18:20:41 +0000 (-0400) Subject: more expanded-glyphs follow-up X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8c08a6aece371b1170b418f906319b84684390c;p=nethack 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 --- diff --git a/include/display.h b/include/display.h index 130cad4ab..30d15ffc9 100644 --- a/include/display.h +++ b/include/display.h @@ -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 diff --git a/src/display.c b/src/display.c index ab002d670..a6434b951 100644 --- a/src/display.c +++ b/src/display.c @@ -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; } } diff --git a/src/do.c b/src/do.c index cd461616a..9a09203ff 100644 --- a/src/do.c +++ b/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); /*