# HG changeset patch # User unc0rr # Date 1312741453 -14400 # Node ID 9ac5acc4f3e5bb3474d6b1ee94632c98fbda7ef1 # Parent 5a4bc518c59a4c05c1c7dbe3eaccbd38616fc8f9 Also unhide mouse cursor when in gsConfirm state diff -r 5a4bc518c59a -r 9ac5acc4f3e5 hedgewars/uCommandHandlers.pas --- a/hedgewars/uCommandHandlers.pas Sun Aug 07 22:20:52 2011 +0400 +++ b/hedgewars/uCommandHandlers.pas Sun Aug 07 22:24:13 2011 +0400 @@ -46,9 +46,13 @@ if GameState <> gsConfirm then begin prevGState:= GameState; - GameState:= gsConfirm + GameState:= gsConfirm; + SDL_ShowCursor(1) end else - GameState:= prevGState + begin + GameState:= prevGState; + SDL_ShowCursor(0) + end end; procedure chForceQuit(var s: shortstring); diff -r 5a4bc518c59a -r 9ac5acc4f3e5 hedgewars/uWorld.pas --- a/hedgewars/uWorld.pas Sun Aug 07 22:20:52 2011 +0400 +++ b/hedgewars/uWorld.pas Sun Aug 07 22:24:13 2011 +0400 @@ -1318,7 +1318,7 @@ procedure onFocusStateChanged; begin if (not cHasFocus) and (GameState <> gsConfirm) then - ParseCommand('quit', true) + ParseCommand('quit', true); end;