Remove lazy loading of binary map data.
This commit is contained in:
@@ -158,7 +158,6 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (!checkTerrainType)
|
||||
return true;
|
||||
|
||||
var tiles = self.World.Map.MapTiles.Value;
|
||||
var terrainType = self.World.Map.GetTerrainInfo(self.Location).Type;
|
||||
|
||||
return info.AllowedTerrainTypes.Contains(terrainType);
|
||||
@@ -172,7 +171,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
var ramp = 0;
|
||||
if (self.World.Map.Contains(self.Location))
|
||||
{
|
||||
var tile = self.World.Map.MapTiles.Value[self.Location];
|
||||
var tile = self.World.Map.Tiles[self.Location];
|
||||
var ti = self.World.Map.Rules.TileSet.GetTileInfo(tile);
|
||||
if (ti != null)
|
||||
ramp = ti.RampType;
|
||||
|
||||
Reference in New Issue
Block a user