mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- fixed handling of BitsToSend.
This commit is contained in:
parent
7bc2befc84
commit
1d685d24e9
1 changed files with 4 additions and 2 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue