From 9b85816f70f48dec570ec2e17c7f72a4dec2d890 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 23 Sep 2020 23:45:32 +1000 Subject: [PATCH] - Exhumed: Fix ordering issue in `gi->GetInput()` preventing player from pressing use to start again. --- source/exhumed/src/input.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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; }