# HG changeset patch # User unc0rr # Date 1312741677 -14400 # Node ID 40b7f95d9f18c90e2b02ebc7661ec82f9fb91ee0 # Parent 9ac5acc4f3e5bb3474d6b1ee94632c98fbda7ef1 Oh, and fix cursor visibility correlations between gsConfirm state and paused state diff -r 9ac5acc4f3e5 -r 40b7f95d9f18 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);