From d411defd043619a1edadcd582bc3c3db6c7935ba Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 13 May 2020 19:49:01 +1000 Subject: [PATCH] RR: Reset one_eighty_count if player angle input is detected. --- source/rr/src/player.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/rr/src/player.cpp b/source/rr/src/player.cpp index 6984ee791..e12a3854e 100644 --- a/source/rr/src/player.cpp +++ b/source/rr/src/player.cpp @@ -3504,6 +3504,11 @@ void P_GetInput(int const playerNum) { localInput.q16avel = fix16_sadd(localInput.q16avel, input.q16avel); pPlayer->q16ang = fix16_sadd(pPlayer->q16ang, input.q16avel) & 0x7FFFFFF; + + if (input.q16avel) + { + pPlayer->one_eighty_count = 0; + } } if (!(movementLocked & IL_NOHORIZ))