]> granicus.if.org Git - nethack/commitdiff
build fix (trunk only)
authornethack.rankin <nethack.rankin>
Sat, 23 Sep 2006 04:30:45 +0000 (04:30 +0000)
committernethack.rankin <nethack.rankin>
Sat, 23 Sep 2006 04:30:45 +0000 (04:30 +0000)
     This may become moot if ASCIIGRAPH and/or ROGUE_COLOR setup changes.
But right now, the initialization was failing except when all three of
TEXTCOLOR, ASCIIGRAPH, and REINCARNATION were defined.

src/mapglyph.c

index dc0473d45c8370ae16d652b1f5d6effee29195d8..941a390bcef89ffd95f877f5ec02ffb0fb857073 100644 (file)
@@ -71,8 +71,10 @@ unsigned *ospecial;
 #endif
        uchar ch;
        unsigned special = 0;
+#ifdef ROGUE_COLOR
        /* condense multiple tests in macro version down to single */
        boolean has_rogue_ibm_graphics = HAS_ROGUE_IBM_GRAPHICS;
+#endif
 
     /*
      *  Map the glyph back to a character and color.
@@ -222,7 +224,11 @@ unsigned *ospecial;
 #ifdef TEXTCOLOR
     /* Turn off color if no color defined, or rogue level w/o PC graphics. */
 # ifdef REINCARNATION
+#  ifdef ROGUE_COLOR
     if (!has_color(color) || (Is_rogue_level(&u.uz) && !has_rogue_ibm_graphics))
+#  else
+    if (!has_color(color) || Is_rogue_level(&u.uz))
+#  endif
 # else
     if (!has_color(color))
 # endif