[-] Fixed bug with map clipping on 32x32 maps
This commit is contained in:
parent
01cb1aed06
commit
a57f91ed56
1 changed files with 2 additions and 2 deletions
|
@ -178,8 +178,8 @@ void InitUserInterface()
|
|||
// Calculations
|
||||
//
|
||||
if (Map.Info.MapWidth) {
|
||||
UI.MapArea.EndX = std::min<int>(UI.MapArea.EndX, Map.Info.MapWidth * PixelTileSize.x - 1);
|
||||
UI.MapArea.EndY = std::min<int>(UI.MapArea.EndY, Map.Info.MapHeight * PixelTileSize.y - 1);
|
||||
UI.MapArea.EndX = std::min<int>(UI.MapArea.EndX, UI.MapArea.X + Map.Info.MapWidth * PixelTileSize.x - 1);
|
||||
UI.MapArea.EndY = std::min<int>(UI.MapArea.EndY, UI.MapArea.Y + Map.Info.MapHeight * PixelTileSize.y - 1);
|
||||
}
|
||||
|
||||
UI.SelectedViewport = UI.Viewports;
|
||||
|
|
Loading…
Reference in a new issue