mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- Exhumed: Fix ordering issue in gi->GetInput()
preventing player from pressing use to start again.
This commit is contained in:
parent
2bb5ef0d2e
commit
9b85816f70
1 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue