From 85bbf80dbab328151fb429c8cdb5a3fcb115b2aa Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 5 Nov 2023 16:58:09 +1100 Subject: [PATCH] - Change `paused` check in `433c051751ebdf3b9d82ec4cabf01122414de961` as to not affect the `crouch_toggle` while paused. --- source/core/gameinput.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/gameinput.cpp b/source/core/gameinput.cpp index 0b9180c25b..dd1f4e028c 100644 --- a/source/core/gameinput.cpp +++ b/source/core/gameinput.cpp @@ -329,7 +329,7 @@ void GameInput::getInput(InputPacket* packet) I_GetEvent(); SendAction(PlayerArray[myconnectindex]->cmd.ucmd.actions & SB_CENTERVIEW); - if (paused || M_Active() || gamestate != GS_LEVEL) + if (M_Active() || gamestate != GS_LEVEL) { inputBuffer = {}; return; @@ -337,7 +337,7 @@ void GameInput::getInput(InputPacket* packet) I_GetAxes(joyAxes); processInputBits(); - gi->doPlayerMovement(); + if (!paused) gi->doPlayerMovement(); mouseInput.Zero(); if (packet)