Move TileSize definition to terrain info.
This commit is contained in:
committed by
Gustas Kažukauskas
parent
0f7b24a8c0
commit
25188e849e
@@ -143,7 +143,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (info.ViewportHeight.HasValue)
|
||||
{
|
||||
// WPos to world pixels
|
||||
var height = info.ViewportHeight.Value.Length * w.Map.Grid.TileSize.Height / w.Map.Grid.TileScale;
|
||||
var height = info.ViewportHeight.Value.Length * w.Map.Rules.TerrainInfo.TileSize.Height / w.Map.Grid.TileScale;
|
||||
wr.Viewport.OverrideDefaultHeight(height);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user