diff --git a/source/games/duke/src/input.cpp b/source/games/duke/src/input.cpp index 600aafdcc..990076398 100644 --- a/source/games/duke/src/input.cpp +++ b/source/games/duke/src/input.cpp @@ -794,17 +794,14 @@ static void FinalizeInput(int playerNum, 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) || (!(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; } } }