- SW: Fix tank track velocity.

* Originating from 8efe6f638b.
* Velocity was correctly floatified initially but because it was unwrapped, it never got adjusted for Q28.4 later on.
This commit is contained in:
Mitchell Richters 2023-01-02 14:41:43 +11:00
parent 56d9ccfc9c
commit b03d674a74

View file

@ -2318,7 +2318,7 @@ void DoTankTreads(PLAYER* pp)
if (Prediction)
return;
int vel = int(pp->vect.Length() * 1024);
double vel = pp->vect.Length() * 64;
double dot = pp->vect.dot(pp->actor->spr.Angles.Yaw.ToVector());
if (dot < 0)
reverse = true;