1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-05-04 22:35:13 +01:00

Bugfix: Don't override player's configured ghost symbol

assign_graphics() was setting the ghost symbol to the lit room symbol,
so it looked consistent with the floor if you are using a symset with
a fancy floor symbol (like UTF8graphics).  This was overriding the
player's configured ghost symbol.  Instead, only set it if it's
currently set to the default.
This commit is contained in:
Ron Nazarov 2024-04-14 02:01:41 +01:00
parent 3a7c8bc6d6
commit 794200f199
Signed by: noisytoot
GPG key ID: 1D43EF4F4492268B

View file

@ -997,7 +997,7 @@ int glth, maxlen, offset;
for (i = 0; i < maxlen; i++)
showsyms[i+offset] = (((i < glth) && graph_chars[i]) ?
graph_chars[i] : defsyms[i+offset].sym);
monsyms[S_GHOST] = showsyms[S_litroom];
if (monsyms[S_GHOST] == DEF_GHOST) monsyms[S_GHOST] = showsyms[S_litroom];
}
#ifdef USER_DUNGEONCOLOR