From a00d0f598675fb1d8a244c997daa59fba572a9b0 Mon Sep 17 00:00:00 2001 From: nukeykt Date: Sun, 1 Sep 2019 01:37:21 +0900 Subject: [PATCH] Fix level restart --- source/exhumed/src/input.cpp | 4 ---- source/exhumed/src/player.cpp | 7 +++---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/source/exhumed/src/input.cpp b/source/exhumed/src/input.cpp index 75d8ccbf3..ae63dad01 100644 --- a/source/exhumed/src/input.cpp +++ b/source/exhumed/src/input.cpp @@ -111,10 +111,6 @@ void GetLocalInput() lLocalButtons |= BUTTON(gamefunc_Open) << 2; - if (BUTTON(gamefunc_Open)) { - int breakme = 123; - } - // TODO ExecRecord(&sPlayerInput[nLocalPlayer], sizeof(PlayerInput)); } diff --git a/source/exhumed/src/player.cpp b/source/exhumed/src/player.cpp index 900de6567..b590ef88c 100644 --- a/source/exhumed/src/player.cpp +++ b/source/exhumed/src/player.cpp @@ -140,6 +140,9 @@ fixed droll; void PlayerInterruptKeys() { ControlInfo info; + CONTROL_ProcessBinds(); + memset(&info, 0, sizeof(ControlInfo)); // this is done within CONTROL_GetInput() anyway + CONTROL_GetInput(&info); if (PlayerList[nLocalPlayer].nHealth == 0) { @@ -149,10 +152,6 @@ void PlayerInterruptKeys() return; } - memset(&info, 0, sizeof(ControlInfo)); // this is done within CONTROL_GetInput() anyway - CONTROL_ProcessBinds(); - CONTROL_GetInput(&info); - info.dyaw *= (lMouseSens >> 1) + 1; int nXVel, nYVel;