hedgewars/uCommandHandlers.pas
changeset 15984 6a985a680c44
parent 15983 416bca0a172c
child 16004 2146cb7be36f
--- a/hedgewars/uCommandHandlers.pas	Wed May 24 21:23:33 2023 +0200
+++ b/hedgewars/uCommandHandlers.pas	Wed May 24 23:54:58 2023 +0200
@@ -49,15 +49,16 @@
 begin
     s:= s; // avoid compiler hint
     if (GameState = gsGame) then
-    begin
+        begin
         CloseChat;
         GameState:= gsConfirm;
-    end
-    else begin
+        end
+    else
         if GameState = gsConfirm then
+            begin
             GameState:= gsGame;
-    end;
-
+            RestoreChat;
+            end;
     updateCursorVisibility;
 end;