Remove lazy loading of binary map data.
This commit is contained in:
@@ -44,8 +44,8 @@ namespace OpenRA
|
||||
var maxHeight = map.Grid.MaximumTerrainHeight;
|
||||
var heightOffset = map.Grid.Type == MapGridType.RectangularIsometric ? maxHeight : maxHeight / 2;
|
||||
|
||||
// Use the MapHeight data array to clamp the bottom coordinate so it doesn't overflow the map
|
||||
mapBottomRight = map.MapHeight.Value.Clamp(new MPos(bottomRight.U, bottomRight.V + heightOffset));
|
||||
// Use the map Height data array to clamp the bottom coordinate so it doesn't overflow the map
|
||||
mapBottomRight = map.Height.Clamp(new MPos(bottomRight.U, bottomRight.V + heightOffset));
|
||||
}
|
||||
|
||||
public bool Contains(PPos puv)
|
||||
|
||||
Reference in New Issue
Block a user