- Exhumed: Fix ordering issue in gi->GetInput() preventing player from pressing use to start again.

This commit is contained in:
Mitchell Richters 2020-09-23 23:45:32 +10:00
parent 2bb5ef0d2e
commit 9b85816f70

View file

@ -214,13 +214,6 @@ void GameInterface::GetInput(InputPacket* packet, ControlInfo* const hidInput)
return;
}
if (PlayerList[nLocalPlayer].nHealth == 0)
{
lPlayerYVel = 0;
lPlayerXVel = 0;
return;
}
if (packet != nullptr)
{
localInput = {};
@ -228,6 +221,13 @@ void GameInterface::GetInput(InputPacket* packet, ControlInfo* const hidInput)
if (PlayerList[nLocalPlayer].nHealth == 0) localInput.actions &= SB_OPEN;
}
if (PlayerList[nLocalPlayer].nHealth == 0)
{
lPlayerYVel = 0;
lPlayerXVel = 0;
return;
}
processMovement(hidInput);
if (packet) *packet = localInput;
}