hedgewars/uCommandHandlers.pas
changeset 5524 40b7f95d9f18
parent 5523 9ac5acc4f3e5
child 5530 25d4118056e1
child 5555 38e3d9347910
equal deleted inserted replaced
5523:9ac5acc4f3e5 5524:40b7f95d9f18
    49         GameState:= gsConfirm;
    49         GameState:= gsConfirm;
    50         SDL_ShowCursor(1)
    50         SDL_ShowCursor(1)
    51     end else
    51     end else
    52     begin
    52     begin
    53         GameState:= prevGState;
    53         GameState:= prevGState;
    54         SDL_ShowCursor(0)
    54         SDL_ShowCursor(ord(isPaused))
    55     end
    55     end
    56 end;
    56 end;
    57 
    57 
    58 procedure chForceQuit(var s: shortstring);
    58 procedure chForceQuit(var s: shortstring);
    59 begin
    59 begin
   531 procedure chPause(var s: shortstring);
   531 procedure chPause(var s: shortstring);
   532 begin
   532 begin
   533 s:= s; // avoid compiler hint
   533 s:= s; // avoid compiler hint
   534 if gameType <> gmtNet then
   534 if gameType <> gmtNet then
   535     isPaused:= not isPaused;
   535     isPaused:= not isPaused;
   536 SDL_ShowCursor(ord(isPaused))
   536 
       
   537 if isPaused then
       
   538     SDL_ShowCursor(1)
       
   539     else
       
   540     SDL_ShowCursor(ord(GameState = gsConfirm))
   537 end;
   541 end;
   538 
   542 
   539 procedure chRotateMask(var s: shortstring);
   543 procedure chRotateMask(var s: shortstring);
   540 begin
   544 begin
   541 s:= s; // avoid compiler hint
   545 s:= s; // avoid compiler hint