diff --git a/source/exhumed/src/input.cpp b/source/exhumed/src/input.cpp index d8a99829f..04f64a0a4 100644 --- a/source/exhumed/src/input.cpp +++ b/source/exhumed/src/input.cpp @@ -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; }