remove unneccesary null check
This commit is contained in:
@@ -98,7 +98,7 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
if (!ResourceType.AllowedTerrainTypes.Contains(terrainType.Type))
|
||||
return false;
|
||||
|
||||
return ResourceType.AllowOnRamps || tileInfo == null || tileInfo.RampType == 0;
|
||||
return ResourceType.AllowOnRamps || tileInfo.RampType == 0;
|
||||
}
|
||||
|
||||
public void Tick()
|
||||
|
||||
Reference in New Issue
Block a user