Fixed broken map rendering in cases when map is revealed
This commit is contained in:
parent
18fad73cfb
commit
fa13f46277
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue