From ca65a5e2ca6be8cdb8492a41430e06f1fe54b113 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 26 Oct 2009 23:17:59 +1300 Subject: [PATCH] tidy --- OpenRa.Game/GameRules/Footprint.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/OpenRa.Game/GameRules/Footprint.cs b/OpenRa.Game/GameRules/Footprint.cs index 3a8441a347..d4a1cd2d11 100644 --- a/OpenRa.Game/GameRules/Footprint.cs +++ b/OpenRa.Game/GameRules/Footprint.cs @@ -54,11 +54,8 @@ namespace OpenRa.Game.GameRules for( int y = 0 ; y < dim.Y ; y++ ) for( int x = 0 ; x < dim.X ; x++ ) - { - if( cond( footprint[ index ] ) ) + if( cond( footprint[ index++ ] ) ) yield return new int2( x, y ); - ++index; - } } public static int2 AdjustForBuildingSize( string name )