Move TileScale to MapGrid
This commit is contained in:
@@ -128,10 +128,14 @@ namespace OpenRA
|
||||
|
||||
internal readonly CVec[][] TilesByDistance;
|
||||
|
||||
public int TileScale { get; }
|
||||
|
||||
public MapGrid(MiniYaml yaml)
|
||||
{
|
||||
FieldLoader.Load(this, yaml);
|
||||
|
||||
TileScale = Type == MapGridType.RectangularIsometric ? 1448 : 1024;
|
||||
|
||||
// The default subcell index defaults to the middle entry
|
||||
var defaultSubCellIndex = (byte)DefaultSubCell;
|
||||
if (defaultSubCellIndex == byte.MaxValue)
|
||||
|
||||
Reference in New Issue
Block a user