diff options
Diffstat (limited to 'src/gui/windows/minimap.cpp')
-rw-r--r-- | src/gui/windows/minimap.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp index bdf9c37be..6b2a8547a 100644 --- a/src/gui/windows/minimap.cpp +++ b/src/gui/windows/minimap.cpp @@ -237,8 +237,21 @@ void Minimap::toggle() void Minimap::draw(Graphics *graphics) { BLOCK_START("Minimap::draw") + Window::draw(graphics); + draw2(graphics); +} + +void Minimap::safeDraw(Graphics *graphics) +{ + BLOCK_START("Minimap::draw") + + Window::safeDraw(graphics); + draw2(graphics); +} +void Minimap::draw2(Graphics *const graphics) +{ if (!userPalette || !localPlayer || !viewport) { BLOCK_END("Minimap::draw") |