]> granicus.if.org Git - nethack/commitdiff
Fix magic mapped dark room symbols
authorPasi Kallinen <paxed@alt.org>
Fri, 10 Apr 2015 19:43:13 +0000 (22:43 +0300)
committerPasi Kallinen <paxed@alt.org>
Fri, 10 Apr 2015 19:43:13 +0000 (22:43 +0300)
src/display.c

index 75af16442dfc8abc96d640199c94721598688e66..1369fbfb3b9e8f81896f9382ac5a36c58d2a215a 100644 (file)
@@ -160,7 +160,7 @@ magic_map_background(x, y, show)
     if (!cansee(x,y) && !lev->waslit) {
        /* Floor spaces are dark if unlit.  Corridors are dark if unlit. */
        if (lev->typ == ROOM && glyph == cmap_to_glyph(S_room))
-           glyph = cmap_to_glyph(S_stone);
+           glyph = cmap_to_glyph((flags.dark_room && iflags.use_color) ? (DARKROOMSYM) : S_stone);
        else if (lev->typ == CORR && glyph == cmap_to_glyph(S_litcorr))
            glyph = cmap_to_glyph(S_corr);
     }