mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-30 21:31:03 +00:00
- Duke: Move changes performed in 53038e1b29
from FinalizeInput()
to processInputBits()
.
This commit is contained in:
parent
53038e1b29
commit
ed9c8af82f
1 changed files with 5 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue