- Duke: Move changes performed in 53038e1b29 from FinalizeInput() to processInputBits().

This commit is contained in:
Mitchell Richters 2020-09-23 15:03:34 +10:00
parent 53038e1b29
commit ed9c8af82f

View file

@ -530,6 +530,11 @@ static void processInputBits(player_struct *p, ControlInfo* const hidInput)
loc.actions &= ~(SB_WEAPONMASK_BITS | SB_TURNAROUND | SB_CENTERVIEW | SB_HOLSTER | SB_JUMP | SB_CROUCH | SB_RUN |
SB_AIM_UP | SB_AIM_DOWN | SB_AIMMODE | SB_LOOK_UP | SB_LOOK_DOWN | SB_LOOK_LEFT | SB_LOOK_RIGHT);
}
else if (p->newowner != -1)
{
// Remove look left/right bits if looking through a camera.
loc.actions &= ~(SB_LOOK_LEFT | SB_LOOK_RIGHT);
}
else
{
if (buttonMap.ButtonDown(gamefunc_Quick_Kick)) // this shares a bit with another function so cannot be in the common code.
@ -972,12 +977,6 @@ static void FinalizeInput(int playerNum, InputPacket& input, bool vehicle)
loc.q16horz = input.q16horz = 0;
}
}
// Remove look left/right bits if looking through a camera.
if (p->newowner != -1)
{
loc.actions &= ~(SB_LOOK_LEFT | SB_LOOK_RIGHT);
}
}
//---------------------------------------------------------------------------