Fix nocolor messing with dark_room on levelchange

As reported by Pat:
> After leaving a level and then returning, I'm seeing lit
> room squares as blank
> Options all have their default settings

OPTIONS=nocolor is the default; we should probably change this
sometime, because nearly everyone plays with color.
This commit is contained in:
Pasi Kallinen
2015-07-10 15:46:58 +03:00
parent 3caa4e2adb
commit 864fb1e203

View File

@@ -525,7 +525,7 @@ reglyph_darkroom()
for (y = 0; y < ROWNO; y++) {
struct rm *lev = &levl[x][y];
if (!flags.dark_room || Is_rogue_level(&u.uz)) {
if (!flags.dark_room || !iflags.use_color || Is_rogue_level(&u.uz)) {
if (lev->glyph == cmap_to_glyph(S_darkroom))
lev->glyph = lev->waslit ? cmap_to_glyph(S_room)
: cmap_to_glyph(S_stone);