From b03d674a7405b6263ea11faa6adf5b51da7161e6 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Mon, 2 Jan 2023 14:41:43 +1100 Subject: [PATCH] - SW: Fix tank track velocity. * Originating from 8efe6f638b3e5e93bc33f1031395b0b5b88a2202. * Velocity was correctly floatified initially but because it was unwrapped, it never got adjusted for Q28.4 later on. --- source/games/sw/src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/sw/src/player.cpp b/source/games/sw/src/player.cpp index 3c5977145..d37965d18 100644 --- a/source/games/sw/src/player.cpp +++ b/source/games/sw/src/player.cpp @@ -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;