hedgewars/uCommandHandlers.pas
changeset 9670 1954f692e8c6
parent 9489 0818d14e90be
child 9671 6e95617988c9
equal deleted inserted replaced
9669:9fa0f67ff628 9670:1954f692e8c6
   639 
   639 
   640 procedure chPause(var s: shortstring);
   640 procedure chPause(var s: shortstring);
   641 begin
   641 begin
   642 s:= s; // avoid compiler hint
   642 s:= s; // avoid compiler hint
   643 if gameType <> gmtNet then
   643 if gameType <> gmtNet then
   644     isPaused:= not isPaused;
   644     isPaused:= not isPaused
   645 
   645     else
   646 if isPaused then
   646     isAFK:= not isAFK;
       
   647 
       
   648 if isPaused or isAFK then
   647     SDL_ShowCursor(1)
   649     SDL_ShowCursor(1)
   648     else
   650     else
   649     SDL_ShowCursor(ord(GameState = gsConfirm))
   651     SDL_ShowCursor(ord(GameState = gsConfirm))
   650 end;
   652 end;
   651 
   653