Actually round movement.X down to zero
whoops
This commit is contained in:
@@ -283,6 +283,11 @@ namespace Barotrauma
|
||||
MathUtils.SmoothStep(movement, TargetMovement * walkSpeed, movementLerp) :
|
||||
overrideTargetMovement;
|
||||
|
||||
if (Math.Abs(movement.X) < 0.005f)
|
||||
{
|
||||
movement.X = 0.0f;
|
||||
}
|
||||
|
||||
movement.Y = 0.0f;
|
||||
|
||||
for (int i = 0; i < 2; i++)
|
||||
@@ -489,6 +494,7 @@ namespace Barotrauma
|
||||
{
|
||||
movement = Vector2.Normalize(movement);
|
||||
}
|
||||
|
||||
if (Math.Abs(movement.X)<0.005f)
|
||||
{
|
||||
movement.X = 0.0f;
|
||||
|
||||
@@ -1358,7 +1358,7 @@ namespace Barotrauma
|
||||
|
||||
TransformCursorPos();
|
||||
|
||||
if (dequeuedInput == InputNetFlags.None && Math.Abs(AnimController.movement.X) < 0.005f && Math.Abs(AnimController.movement.Y) < 0.005f)
|
||||
if (dequeuedInput == InputNetFlags.None && Math.Abs(AnimController.Collider.LinearVelocity.X) < 0.005f && Math.Abs(AnimController.Collider.LinearVelocity.Y) < 0.005f)
|
||||
{
|
||||
while (memInput.Count > 5 && memInput[memInput.Count - 1] == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user