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));