# HG changeset patch # User Wuzzy # Date 1543261225 -3600 # Node ID 8d2983ff939b08350f5d26bd4d08ac38907c45df # Parent 8fc6ac47f00a6f5749ef72c427f03e9d9b143738 Touch: Remove pause button in net games diff -r 8fc6ac47f00a -r 8d2983ff939b hedgewars/uWorld.pas --- a/hedgewars/uWorld.pas Mon Nov 26 19:10:08 2018 +0100 +++ b/hedgewars/uWorld.pas Mon Nov 26 20:40:25 2018 +0100 @@ -363,7 +363,7 @@ with pauseButton do begin - show:= true; + show:= gameType <> gmtNet; sprite:= sprPauseButton; frame.w:= Round(spritesData[sprPauseButton].Texture^.w * buttonScale); frame.h:= Round(spritesData[sprPauseButton].Texture^.h * buttonScale); @@ -1655,7 +1655,10 @@ // FPS and demo replay time {$IFDEF USE_TOUCH_INTERFACE} -offsetX:= pauseButton.frame.y + pauseButton.frame.h + 12; +if pauseButton.show then + offsetX:= pauseButton.frame.y + pauseButton.frame.h + 12 +else + offsetX:= 10; {$ELSE} offsetX:= 10; {$ENDIF}