Add ITerrainInfo interface.
This commit is contained in:
@@ -137,7 +137,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
ResourceLayerContents CreateResourceCell(ResourceType t, CPos cell)
|
||||
{
|
||||
world.Map.CustomTerrain[cell] = world.Map.Rules.TileSet.GetTerrainIndex(t.Info.TerrainType);
|
||||
world.Map.CustomTerrain[cell] = world.Map.Rules.TerrainInfo.GetTerrainIndex(t.Info.TerrainType);
|
||||
++resCells;
|
||||
|
||||
return new ResourceLayerContents
|
||||
|
||||
Reference in New Issue
Block a user