- SW: Fix ladder speed with unnecessary amplification applied.

* Fixes #745.
This commit is contained in:
Mitchell Richters 2022-11-07 20:23:14 +11:00
parent 817a0cb94a
commit d892fa10d2

View file

@ -3336,7 +3336,7 @@ void DoPlayerClimb(PLAYER* pp)
if (abs(pp->vect.X) < 0.05 && abs(pp->vect.Y) < 0.05) if (abs(pp->vect.X) < 0.05 && abs(pp->vect.Y) < 0.05)
pp->vect.X = pp->vect.Y = 0; pp->vect.X = pp->vect.Y = 0;
double climbVel = pp->vect.Length() * 2; double climbVel = pp->vect.Length();
double dot = pp->vect.dot(pp->angle.ang.ToVector()); double dot = pp->vect.dot(pp->angle.ang.ToVector());
if (dot < 0) if (dot < 0)
climbVel = -climbVel; climbVel = -climbVel;