From: nethack.allison Date: Thu, 21 Sep 2006 03:11:06 +0000 (+0000) Subject: symhandling follow-up (trunk only) X-Git-Tag: MOVE2GIT~900 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5648a7bb3cc8616173e65c56577a83b30c41d2a;p=nethack symhandling follow-up (trunk only) --- diff --git a/src/drawing.c b/src/drawing.c index 78725ae02..90aa72f88 100644 --- a/src/drawing.c +++ b/src/drawing.c @@ -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