From 5233ae47702395359cc7e39cb2a03d0c2407a8cc Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 22 Sep 2010 19:21:22 +1200 Subject: [PATCH] remove spam from Util.GetFacing --- OpenRA.Game/Traits/Util.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/OpenRA.Game/Traits/Util.cs b/OpenRA.Game/Traits/Util.cs index bd6d5850e1..ba6144001d 100755 --- a/OpenRA.Game/Traits/Util.cs +++ b/OpenRA.Game/Traits/Util.cs @@ -32,7 +32,7 @@ namespace OpenRA.Traits static float2[] fvecs = Graphics.Util.MakeArray( 32, i => -float2.FromAngle( i / 16.0f * (float)Math.PI ) * new float2( 1f, 1.3f ) ); - public static int _GetFacing( float2 d, int currentFacing ) + public static int GetFacing( float2 d, int currentFacing ) { if (float2.WithinEpsilon(d, float2.Zero, 0.001f)) return currentFacing; @@ -53,13 +53,6 @@ namespace OpenRA.Traits return highest * 8; } - public static int GetFacing(float2 d, int currentFacing) - { - var result = _GetFacing(d, currentFacing); - Log.Write("debug", "GetFacing {0} {1} => {2}", d, currentFacing, result); - return result; - } - public static int GetNearestFacing( int facing, int desiredFacing ) { var turn = desiredFacing - facing;