Close Esc menu when chat opens
authorWuzzy <Wuzzy@disroot.org>
Wed, 24 May 2023 23:58:28 +0200
changeset 15985 a4630009e733
parent 15984 6a985a680c44
child 15986 7125918637e9
Close Esc menu when chat opens
hedgewars/uChat.pas
--- a/hedgewars/uChat.pas	Wed May 24 23:54:58 2023 +0200
+++ b/hedgewars/uChat.pas	Wed May 24 23:58:28 2023 +0200
@@ -788,6 +788,8 @@
 procedure OpenChat(s: shortstring);
 var i: Integer;
 begin
+    if GameState = gsConfirm then
+        ParseCommand('quit', true);
     isInChatMode:= true;
     SDL_StopTextInput();
     SDL_StartTextInput();