- 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.
This commit is contained in:
Christoph Oelckers 2020-10-17 13:06:12 +02:00
parent d4bb2fa418
commit fb8bc9876c

View file

@ -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 ();