Navigation Menu

Skip to content

Commit

Permalink
remove spam from Util.GetFacing
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisforbes committed Sep 22, 2010
1 parent 562e072 commit 5233ae4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions OpenRA.Game/Traits/Util.cs
Expand Up @@ -32,7 +32,7 @@ public static int TickFacing( int facing, int desiredFacing, int rot )
static float2[] fvecs = Graphics.Util.MakeArray<float2>( 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;
Expand All @@ -53,13 +53,6 @@ public static int _GetFacing( float2 d, int currentFacing )
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;
Expand Down

0 comments on commit 5233ae4

Please sign in to comment.