hedgewars/uCommandHandlers.pas
branchhedgeroid
changeset 5577 272c82f82cee
parent 5530 25d4118056e1
parent 5555 38e3d9347910
child 5725 e27100a0e2d0
--- a/hedgewars/uCommandHandlers.pas	Mon Aug 15 21:45:27 2011 +0200
+++ b/hedgewars/uCommandHandlers.pas	Mon Aug 15 21:49:09 2011 +0200
@@ -43,16 +43,17 @@
 const prevGState: TGameState = gsConfirm;
 begin
     s:= s; // avoid compiler hint
-    if GameState <> gsConfirm then
-    begin
+    if (GameState = gsGame) or (GameState = gsChat) then
+        begin
         prevGState:= GameState;
         GameState:= gsConfirm;
         SDL_ShowCursor(1)
-    end else
-    begin
-        GameState:= prevGState;
-        SDL_ShowCursor(ord(isPaused))
-    end
+        end else
+        if GameState = gsConfirm then
+            begin
+            GameState:= prevGState;
+            SDL_ShowCursor(ord(isPaused))
+            end
 end;
 
 procedure chForceQuit(var s: shortstring);