From: nethack.allison Date: Sun, 27 Jan 2002 03:29:11 +0000 (+0000) Subject: another follow-up for mhmap.c X-Git-Tag: MOVE2GIT~3333 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ca15b16c0aa1b1ebbf8da5dd10217bcf96fec4a;p=nethack another follow-up for mhmap.c Oops, it should have been VERSION_MAJOR < 4, VERSION_MINOR < 4 and PATCHLEVEL < 2 --- diff --git a/win/win32/mhmap.c b/win/win32/mhmap.c index 28e285a97..8e5f11515 100644 --- a/win/win32/mhmap.c +++ b/win/win32/mhmap.c @@ -39,7 +39,7 @@ static void onMSNH_HScroll(HWND hWnd, WPARAM wParam, LPARAM lParam); static void onPaint(HWND hWnd); static void onCreate(HWND hWnd, WPARAM wParam, LPARAM lParam); static void nhcoord2display(PNHMapWindow data, int x, int y, LPRECT lpOut); -#if (VERSION_MAJOR < 3) && (VERSION_MINOR < 3) && (PATCHLEVEL < 2) +#if (VERSION_MAJOR < 4) && (VERSION_MINOR < 4) && (PATCHLEVEL < 2) static void nhglyph2charcolor(short glyph, uchar* ch, int* color); #endif static COLORREF nhcolor_to_RGB(int c); @@ -531,7 +531,7 @@ void onPaint(HWND hWnd) int color; unsigned special, mgch; -#if (VERSION_MAJOR < 3) && (VERSION_MINOR < 3) && (PATCHLEVEL < 2) +#if (VERSION_MAJOR < 4) && (VERSION_MINOR < 4) && (PATCHLEVEL < 2) nhglyph2charcolor(data->map[i][j], &ch, &color); #else /* rely on NetHack core helper routine */ @@ -755,7 +755,7 @@ void nhcoord2display(PNHMapWindow data, int x, int y, LPRECT lpOut) lpOut->bottom = lpOut->top + data->yScrTile; } -#if (VERSION_MAJOR < 3) && (VERSION_MINOR < 3) && (PATCHLEVEL < 2) +#if (VERSION_MAJOR < 4) && (VERSION_MINOR < 4) && (PATCHLEVEL < 2) /* map glyph to character/color combination */ void nhglyph2charcolor(short g, uchar* ch, int* color) {