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
|
||||
|
||||
Reference in New Issue
Block a user