From 1d685d24e95060aa18a3588d793e1ed7d22e02ee Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 17 Jul 2020 22:19:22 +0200 Subject: [PATCH] - fixed handling of BitsToSend. --- source/games/duke/src/input.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/games/duke/src/input.cpp b/source/games/duke/src/input.cpp index 326ea80f3..d2e5d1962 100644 --- a/source/games/duke/src/input.cpp +++ b/source/games/duke/src/input.cpp @@ -39,7 +39,8 @@ source as it is released. BEGIN_DUKE_NS -static int WeaponToSend, BitsToSend; +static int WeaponToSend; +static ESyncBits BitsToSend; extern double elapsedInputTicks; @@ -723,6 +724,8 @@ void processCommonInput(ControlInfo &info, bool onVehicle) // These 3 bits are only available when not riding a bike or boat. if (onVehicle) BitsToSend &= ~(SKB_HOLSTER|SKB_TURNAROUND|SKB_CENTER_VIEW); + loc.bits |= BitsToSend; + BitsToSend = 0; if (buttonMap.ButtonDown(gamefunc_Dpad_Select)) { @@ -963,7 +966,6 @@ void processVehicleInput(player_struct *p, ControlInfo& info, input_t& input, do else { turnvel = boatApplyTurn(p, turnl, turnr, turnspeed != 0, scaleAdjust) * scaleAdjust * 2; - } // What is this? Optimization for playing with a mouse which the original did not have?