]> granicus.if.org Git - nethack/commitdiff
Fix B2001
authornethack.allison <nethack.allison>
Sun, 27 Jan 2002 14:14:14 +0000 (14:14 +0000)
committernethack.allison <nethack.allison>
Sun, 27 Jan 2002 14:14:14 +0000 (14:14 +0000)
B2001 <Someone> [reported] win32?: giant ant is black square

Where is the open doorway with the giant ant standing in it?
There used to be a closed door there, if I recall correctly.
[now there is just a black square]
I'm saving the level files at this point, and I will be saving
the game after I did that, in case you're interested in any save
files.

win/win32/mhmap.c

index 79d21e36fd160dba441e3e069081b18aa8a7e398..6850cbf70a70d1c643ad650833197f1d1ce11a9b 100644 (file)
@@ -524,7 +524,7 @@ void onPaint(HWND hWnd)
                        /* draw the map */
                        for(i=paint_rt.left; i<paint_rt.right; i++) 
                        for(j=paint_rt.top; j<paint_rt.bottom; j++) 
-                       if(data->map[i][j]>0) {
+                       if(data->map[i][j]>=0) {
                                uchar ch;
                                TCHAR wch;
                                RECT  glyph_rect;
@@ -558,7 +558,7 @@ void onPaint(HWND hWnd)
                        /* draw the map */
                        for(i=paint_rt.left; i<paint_rt.right; i++) 
                        for(j=paint_rt.top; j<paint_rt.bottom; j++) 
-                               if(data->map[i][j]>0) {
+                               if(data->map[i][j]>=0) {
                                        short ntile;
                                        int t_x, t_y;
                                        RECT glyph_rect;