]> granicus.if.org Git - nethack/commitdiff
another follow-up for mhmap.c
authornethack.allison <nethack.allison>
Sun, 27 Jan 2002 03:29:11 +0000 (03:29 +0000)
committernethack.allison <nethack.allison>
Sun, 27 Jan 2002 03:29:11 +0000 (03:29 +0000)
Oops, it should have been VERSION_MAJOR < 4,
VERSION_MINOR < 4 and PATCHLEVEL < 2

win/win32/mhmap.c

index 28e285a97a83fb549a1a4b47ade632b4a927830f..8e5f11515f534ed9098ec3b91652153fd8a9c857 100644 (file)
@@ -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)
 {