- 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 321be47319
commit 1265b8aa1b

View file

@ -2396,7 +2396,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->angle.ang.ToVector());
if (dot < 0)
reverse = true;