From b0902f916ac02462b100e43bf1d0c20cb64f6dd8 Mon Sep 17 00:00:00 2001 From: "Richard C. Gobeille" Date: Sun, 10 May 2020 19:00:45 -0700 Subject: [PATCH] Duke3d: zero player return_to_center when setting horizRecenter to false --- source/duke3d/src/player.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/duke3d/src/player.cpp b/source/duke3d/src/player.cpp index 991aa22cd..9f90fc518 100644 --- a/source/duke3d/src/player.cpp +++ b/source/duke3d/src/player.cpp @@ -5774,6 +5774,7 @@ RECHECK: { thisPlayer.horizAngleAdjust = float(6 << (int)(TEST_SYNC_KEY(playerBits, SK_RUN))); thisPlayer.horizRecenter = false; + pPlayer->return_to_center = 0; } } @@ -5783,6 +5784,7 @@ RECHECK: { thisPlayer.horizAngleAdjust = -float(6 << (int)(TEST_SYNC_KEY(playerBits, SK_RUN))); thisPlayer.horizRecenter = false; + pPlayer->return_to_center = 0; } }