From 1f168bc0ad2c34230c6e75729600d35764593010 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 28 Feb 2010 19:42:31 +1300 Subject: [PATCH] Bugfix: take BaseNormal into account for building range checks --- 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 440108dfa4..2fb4ec8d86 100755 --- a/OpenRA.Game/WorldUtils.cs +++ b/OpenRA.Game/WorldUtils.cs @@ -171,7 +171,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 ) + if( at != null && at.Owner == p && at.Info.Traits.Get().BaseNormal) nearnessCandidates.Add( new int2( x, y ) ); } }