]> granicus.if.org Git - nethack/commitdiff
Qt map
authorPatR <rankin@nethack.org>
Sun, 2 Jan 2022 21:56:53 +0000 (13:56 -0800)
committerPatR <rankin@nethack.org>
Sun, 2 Jan 2022 21:56:53 +0000 (13:56 -0800)
The second half of qt_map.cpp is suppressed by '#if 0'.  Make the
same change to prevent a column of giant ants shown for map column 0
in that unused code as was made for the active code.

win/Qt/qt_map.cpp

index 64fb2ea02930c10038b32b220792772ee1f54063..85d78da646f6672d60a539169ca817e9b5ad55c6 100644 (file)
@@ -782,13 +782,14 @@ void NetHackQtMapWindow::Clear()
         Glyphcolor(0, j) = NO_COLOR;
         Glyphttychar(0, j) = ' ';
         Glyphflags(0, j) = 0;
-        Glyphtileidx(0, j) = 0;
+        Glyphtileidx(0, j) = ::glyphmap[GLYPH_NOTHING].tileidx;
+
         for (int i = 1; i < COLNO; ++i) {
             Glyph(i, j) = GLYPH_UNEXPLORED;
             Glyphcolor(i, j) = NO_COLOR;
             Glyphttychar(i, j) = ' ';
             Glyphflags(i, j) = 0;
-            Glyphtileidx(i, j) = 0;
+            Glyphtileidx(i, j) = ::glyphmap[GLYPH_UNEXPLORED].tileidx;
         }
     }
 
@@ -1035,6 +1036,6 @@ void NetHackQtMapWindow::Changed(int x, int y)
 {
     change.add(x,y);
 }
-#endif
+#endif /* 0 //RLC */
 
 } // namespace nethack_qt_