remove unneccesary null check

This commit is contained in:
Matthias Mailänder
2015-05-25 17:46:34 +02:00
parent 0d8876a1de
commit 113bcebf35

View File

@@ -98,7 +98,7 @@ namespace OpenRA.Mods.Common.Widgets
if (!ResourceType.AllowedTerrainTypes.Contains(terrainType.Type)) if (!ResourceType.AllowedTerrainTypes.Contains(terrainType.Type))
return false; return false;
return ResourceType.AllowOnRamps || tileInfo == null || tileInfo.RampType == 0; return ResourceType.AllowOnRamps || tileInfo.RampType == 0;
} }
public void Tick() public void Tick()