From 7760eff4bac1d16a5f9eb0ebb41af96765a81682 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Mon, 2 Jan 2023 14:35:04 +1100 Subject: [PATCH] - SW: Fix issue with RC tank in $seabase. * Originated from 8efe6f638b3e5e93bc33f1031395b0b5b88a2202. * I'm sure this was meant to be 0.05, but became 0.5 by mistake. * Use something closer to `12800. / 262144.`. * Fixes #831. --- 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 09d0e2ab8..ee8ad767e 100644 --- a/source/games/sw/src/player.cpp +++ b/source/games/sw/src/player.cpp @@ -2608,7 +2608,7 @@ void DoPlayerMoveVehicle(PLAYER* pp) pp->vect = (pp->vect + (pp->ovect*1))/2; } - if (abs(pp->vect.X) < 0.5 && abs(pp->vect.Y) < 0.5) + if (abs(pp->vect.X) < 0.04883 && abs(pp->vect.Y) < 0.04883) pp->vect.X = pp->vect.Y = 0; pp->lastcursector = pp->cursector;