Bugfix: take BaseNormal into account for building range checks

This commit is contained in:
Paul Chote
2010-02-28 19:42:31 +13:00
parent f84464d5ab
commit 1f168bc0ad

View File

@@ -171,7 +171,7 @@ namespace OpenRA
for( int x = scanStart.X ; x < scanEnd.X ; x++ )
{
var at = world.WorldActor.traits.Get<BuildingInfluence>().GetBuildingAt( new int2( x, y ) );
if( at != null && at.Owner == p )
if( at != null && at.Owner == p && at.Info.Traits.Get<BuildingInfo>().BaseNormal)
nearnessCandidates.Add( new int2( x, y ) );
}
}