From de1b4765dcace1f78c28be4db554bd61baca1aea Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 3 Jan 2021 20:14:40 +1100 Subject: [PATCH] - Duke: Partially revert edba971b7f233e74a45fc9f25006b2e3530458aa. I need to stop breaking this. --- source/games/duke/src/input.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/source/games/duke/src/input.cpp b/source/games/duke/src/input.cpp index 4ddc2a25f..8f50d3079 100644 --- a/source/games/duke/src/input.cpp +++ b/source/games/duke/src/input.cpp @@ -789,17 +789,14 @@ static void FinalizeInput(player_struct *p, InputPacket& input, bool vehicle) loc.svel = input.svel = 0; } - if (p->newOwner != nullptr) + if (p->newOwner != nullptr || p->on_crane != nullptr) { - if (p->on_crane != nullptr) - { - loc.avel = input.avel = 0; - } + loc.avel = input.avel = 0; + } - if (p->sync.actions & SB_CENTERVIEW && abs(p->horizon.horiz.asbuild()) > 5) - { - loc.horz = input.horz = 0; - } + if (p->newOwner != nullptr || (p->sync.actions & SB_CENTERVIEW && abs(p->horizon.horiz.asbuild()) > 5)) + { + loc.horz = input.horz = 0; } } }