From fa13f4627738c07418e86edf3218b7f223690d75 Mon Sep 17 00:00:00 2001 From: alyokhin Date: Sat, 1 Oct 2022 16:23:54 +0300 Subject: [PATCH] Fixed broken map rendering in cases when map is revealed --- src/map/map_draw.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map/map_draw.cpp b/src/map/map_draw.cpp index fc813ac19..f889954a1 100644 --- a/src/map/map_draw.cpp +++ b/src/map/map_draw.cpp @@ -280,8 +280,9 @@ void CViewport::DrawMapBackgroundInViewport() const graphicTileOffset = Map.Tileset->getLogicalToGraphicalTileSizeMultiplier(); canShortcut = false; } else { - canShortcut = FogOfWar->GetType() != FogOfWarTypes::cEnhanced && !ReplayRevealMap; graphicTileOffset = 1; + canShortcut = (GameSettings.RevealMap == MapRevealModes::cHidden || FogOfWar->GetType() == FogOfWarTypes::cTiledLegacy) + && !ReplayRevealMap; } while (sy < 0) {