From: PatR Date: Sun, 2 Jan 2022 21:56:53 +0000 (-0800) Subject: Qt map X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87328a178952aa65e578d70da61ad0f28653ca6d;p=nethack Qt map 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. --- diff --git a/win/Qt/qt_map.cpp b/win/Qt/qt_map.cpp index 64fb2ea02..85d78da64 100644 --- a/win/Qt/qt_map.cpp +++ b/win/Qt/qt_map.cpp @@ -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_