mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-14 08:30:35 +00:00
- Exhumed: Clear local input accumulation buffer after copying a packet, just like the other games.
This commit is contained in:
parent
0cf44e42fc
commit
1af60fb02b
1 changed files with 2 additions and 6 deletions
|
@ -57,12 +57,7 @@ void GameInterface::GetInput(const double scaleAdjust, InputPacket* packet)
|
||||||
HIDInput hidInput;
|
HIDInput hidInput;
|
||||||
getHidInput(&hidInput);
|
getHidInput(&hidInput);
|
||||||
|
|
||||||
if (packet != nullptr)
|
ApplyGlobalInput(localInput, &hidInput);
|
||||||
{
|
|
||||||
localInput = {};
|
|
||||||
ApplyGlobalInput(localInput, &hidInput);
|
|
||||||
if (PlayerList[nLocalPlayer].nHealth == 0) localInput.actions &= SB_OPEN;
|
|
||||||
}
|
|
||||||
|
|
||||||
Player* pPlayer = &PlayerList[nLocalPlayer];
|
Player* pPlayer = &PlayerList[nLocalPlayer];
|
||||||
InputPacket input {};
|
InputPacket input {};
|
||||||
|
@ -90,6 +85,7 @@ void GameInterface::GetInput(const double scaleAdjust, InputPacket* packet)
|
||||||
if (packet)
|
if (packet)
|
||||||
{
|
{
|
||||||
*packet = localInput;
|
*packet = localInput;
|
||||||
|
localInput = {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue