]> granicus.if.org Git - nethack/commitdiff
symhandling follow-up (trunk only)
authornethack.allison <nethack.allison>
Thu, 21 Sep 2006 03:11:06 +0000 (03:11 +0000)
committernethack.allison <nethack.allison>
Thu, 21 Sep 2006 03:11:06 +0000 (03:11 +0000)
src/drawing.c

index 78725ae0235509381c846a60c0c6757541c1efaa..90aa72f88d6280317aba23c8296676f0969474a9 100644 (file)
@@ -372,15 +372,22 @@ int nondefault;
 
                for (i = 0; i < MAXOCLASSES; i++)
                    oc_syms[i] = l_oc_syms[i];
+               /*
+                * We can't use the SYMHANDLING or ROGUEHANDLING
+                * macros in this file (drawing.c) because doing
+                * so would cause link errors during some util
+                * program builds because of the presence of
+                * the Is_Roguelevel checks in those macros.
+                */
 #ifdef PC9800
-               if (symset && !strncmpi(symset,"IBM",3)
+               if (symhandling && !strcmpi(symhandling,"IBM")
                    && ibmgraphics_mode_callback)
                        (*ibmgraphics_mode_callback)();
                else if (!symset && ascgraphics_mode_callback)
                        (*ascgraphics_mode_callback)();
 #endif
 #ifdef TERMLIB
-               if (symset && !strncmpi(symset,"DEC",3)
+               if (symhandling && !strcmpi(symhandling,"DEC")
                    && decgraphics_mode_callback)
                        (*decgraphics_mode_callback)();
 #endif