mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-14 16:40:46 +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;
|
||||
getHidInput(&hidInput);
|
||||
|
||||
if (packet != nullptr)
|
||||
{
|
||||
localInput = {};
|
||||
ApplyGlobalInput(localInput, &hidInput);
|
||||
if (PlayerList[nLocalPlayer].nHealth == 0) localInput.actions &= SB_OPEN;
|
||||
}
|
||||
ApplyGlobalInput(localInput, &hidInput);
|
||||
|
||||
Player* pPlayer = &PlayerList[nLocalPlayer];
|
||||
InputPacket input {};
|
||||
|
@ -90,6 +85,7 @@ void GameInterface::GetInput(const double scaleAdjust, InputPacket* packet)
|
|||
if (packet)
|
||||
{
|
||||
*packet = localInput;
|
||||
localInput = {};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue