allow building near your allies

This commit is contained in:
Bob
2010-05-13 19:26:26 +12:00
parent bed3c28233
commit e05defed67

View File

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