fix misaligned potion colors

Misaligned potion colors due to lack of reset_glyphmap() following obj shuffle.

This issue only impacted a new game
This commit is contained in:
nhmall
2021-10-11 13:36:10 -04:00
parent e5f7ba9fe5
commit 7405d1fa05
3 changed files with 6 additions and 3 deletions

View File

@@ -842,6 +842,8 @@ segfault if gremlin fled weaponless hero wearing gold dragon scales/mail
wasn't incremented, allowing incompatable save files to be restored
restore the boulder exception for piletops that had been unintentionally
removed during the expanded-glyphs changes
misaligned potion colors due to lack of reset_glyphmap() following obj shuffle;
this issue only impacted a new game
curses: 'msg_window' option wasn't functional for curses unless the binary
also included tty support

View File

@@ -339,8 +339,9 @@ enum altar_types {
enum level_walls { main_walls, mines_walls, gehennom_walls,
knox_walls, sokoban_walls };
enum { GM_FLAGS, GM_TTYCHAR, GM_COLOR, NUM_GLYPHMOD }; /* glyphmod entries */
enum glyphmap_change_triggers { gm_nochange, gm_levelchange, gm_optionchange,
gm_symchange, gm_accessibility_change };
enum glyphmap_change_triggers { gm_nochange, gm_newgame, gm_levelchange,
gm_optionchange, gm_symchange,
gm_accessibility_change };
#define NUM_ZAP 8 /* number of zap beam types */
/*

View File

@@ -671,7 +671,7 @@ newgame(void)
u_init();
l_nhcore_init();
reset_glyphmap(gm_newgame);
#ifndef NO_SIGNAL
(void) signal(SIGINT, (SIG_RET_TYPE) done1);
#endif