Unhardcode terrain types. Needs a bit more work re initialization and bridges
This commit is contained in:
@@ -62,7 +62,7 @@ namespace OpenRA.Traits
|
||||
|
||||
public void AddSmudge(int2 loc)
|
||||
{
|
||||
if (!Rules.TerrainTypes[world.GetTerrainType(loc)].AcceptSmudge)
|
||||
if (!world.GetTerrainInfo(loc).AcceptSmudge)
|
||||
return;
|
||||
|
||||
// No smudge; create a new one
|
||||
|
||||
@@ -26,8 +26,6 @@ namespace OpenRA.Traits
|
||||
public readonly string Theater = null;
|
||||
public readonly string Suffix = null;
|
||||
public readonly string Tileset = null;
|
||||
public readonly string Templates = null;
|
||||
public readonly string MapColors = null;
|
||||
}
|
||||
|
||||
public class Theater {}
|
||||
|
||||
Reference in New Issue
Block a user