From fb8bc9876cbe7c9bf44f29a9c5d34974f0470ae1 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 17 Oct 2020 13:06:12 +0200 Subject: [PATCH] - clear the button state when entering chat mode. Since the game cannot be controlled while typing a chat the state must be reset to prevent residual state from triggering actions afterward. --- src/ct_chat.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ct_chat.cpp b/src/ct_chat.cpp index 73c77e6d1..3a18dcb2b 100644 --- a/src/ct_chat.cpp +++ b/src/ct_chat.cpp @@ -508,6 +508,7 @@ CCMD (messagemode) { if (menuactive == MENU_Off) { + buttonMap.ResetButtonStates(); chatmodeon = 1; C_HideConsole (); CT_ClearChatMessage (); @@ -530,6 +531,7 @@ CCMD (messagemode2) { if (menuactive == MENU_Off) { + buttonMap.ResetButtonStates(); chatmodeon = 2; C_HideConsole (); CT_ClearChatMessage ();