Fixed broken map rendering in cases when map is revealed

This commit is contained in:
alyokhin 2022-10-01 16:23:54 +03:00
parent 18fad73cfb
commit fa13f46277

View file

@ -280,8 +280,9 @@ void CViewport::DrawMapBackgroundInViewport() const
graphicTileOffset = Map.Tileset->getLogicalToGraphicalTileSizeMultiplier(); graphicTileOffset = Map.Tileset->getLogicalToGraphicalTileSizeMultiplier();
canShortcut = false; canShortcut = false;
} else { } else {
canShortcut = FogOfWar->GetType() != FogOfWarTypes::cEnhanced && !ReplayRevealMap;
graphicTileOffset = 1; graphicTileOffset = 1;
canShortcut = (GameSettings.RevealMap == MapRevealModes::cHidden || FogOfWar->GetType() == FogOfWarTypes::cTiledLegacy)
&& !ReplayRevealMap;
} }
while (sy < 0) { while (sy < 0) {