Oh, and fix cursor visibility correlations between gsConfirm state and paused state
authorunc0rr
Sun, 07 Aug 2011 22:27:57 +0400
changeset 5524 40b7f95d9f18
parent 5523 9ac5acc4f3e5
child 5525 5fb06333314e
Oh, and fix cursor visibility correlations between gsConfirm state and paused state
hedgewars/uCommandHandlers.pas
--- a/hedgewars/uCommandHandlers.pas	Sun Aug 07 22:24:13 2011 +0400
+++ b/hedgewars/uCommandHandlers.pas	Sun Aug 07 22:27:57 2011 +0400
@@ -51,7 +51,7 @@
     end else
     begin
         GameState:= prevGState;
-        SDL_ShowCursor(0)
+        SDL_ShowCursor(ord(isPaused))
     end
 end;
 
@@ -533,7 +533,11 @@
 s:= s; // avoid compiler hint
 if gameType <> gmtNet then
     isPaused:= not isPaused;
-SDL_ShowCursor(ord(isPaused))
+
+if isPaused then
+    SDL_ShowCursor(1)
+    else
+    SDL_ShowCursor(ord(GameState = gsConfirm))
 end;
 
 procedure chRotateMask(var s: shortstring);