- Exhumed: Clear local input accumulation buffer after copying a packet, just like the other games.

This commit is contained in:
Mitchell Richters 2023-03-18 13:02:06 +11:00
parent 0cf44e42fc
commit 1af60fb02b

View file

@ -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 = {};
}
}