Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
coelckers committed Oct 17, 2020
1 parent d4bb2fa commit fb8bc98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ct_chat.cpp
Expand Up @@ -508,6 +508,7 @@ CCMD (messagemode)
{
if (menuactive == MENU_Off)
{
buttonMap.ResetButtonStates();
chatmodeon = 1;
C_HideConsole ();
CT_ClearChatMessage ();
Expand All @@ -530,6 +531,7 @@ CCMD (messagemode2)
{
if (menuactive == MENU_Off)
{
buttonMap.ResetButtonStates();
chatmodeon = 2;
C_HideConsole ();
CT_ClearChatMessage ();
Expand Down

0 comments on commit fb8bc98

Please sign in to comment.