From 395ca3c5c2f6656de818847a17b55c79a8f1949f Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Wed, 18 Apr 2018 17:27:06 +0300 Subject: [PATCH] Removed debug code from PhysicsBody.ApplyLinearImpulse --- .../BarotraumaShared/Source/Physics/PhysicsBody.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Barotrauma/BarotraumaShared/Source/Physics/PhysicsBody.cs b/Barotrauma/BarotraumaShared/Source/Physics/PhysicsBody.cs index 57668ac85..7ce46113a 100644 --- a/Barotrauma/BarotraumaShared/Source/Physics/PhysicsBody.cs +++ b/Barotrauma/BarotraumaShared/Source/Physics/PhysicsBody.cs @@ -375,16 +375,8 @@ namespace Barotrauma /// public void ApplyLinearImpulse(Vector2 impulse, float maxVelocity) { - - float currSpeed = body.LinearVelocity.Length(); - if (currSpeed > 100.0f) - { - int sdfgsdfg = 1; - } - - + float currSpeed = body.LinearVelocity.Length(); Vector2 velocityAddition = impulse / Mass; - Vector2 newVelocity = body.LinearVelocity + velocityAddition; newVelocity = newVelocity.ClampLength(Math.Max(currSpeed, maxVelocity));