From e05defed67ae6dd757f7f846603ce65b2e056c8c Mon Sep 17 00:00:00 2001 From: Bob Date: Thu, 13 May 2010 19:26:26 +1200 Subject: [PATCH] allow building near your allies --- OpenRA.Game/WorldUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/WorldUtils.cs b/OpenRA.Game/WorldUtils.cs index 9e81585228..0dbda74e8d 100755 --- a/OpenRA.Game/WorldUtils.cs +++ b/OpenRA.Game/WorldUtils.cs @@ -176,7 +176,7 @@ namespace OpenRA for( int x = scanStart.X ; x < scanEnd.X ; x++ ) { var at = world.WorldActor.traits.Get().GetBuildingAt( new int2( x, y ) ); - if( at != null && at.Owner == p && at.Info.Traits.Get().BaseNormal) + if( at != null && at.Owner.Stances[ p ] == Stance.Ally && at.Info.Traits.Get().BaseNormal ) nearnessCandidates.Add( new int2( x, y ) ); } }