Touch: Remove pause button in net games
authorWuzzy <Wuzzy2@mail.ru>
Mon, 26 Nov 2018 20:40:25 +0100
changeset 14302 8d2983ff939b
parent 14301 8fc6ac47f00a
child 14303 2978d6405d88
Touch: Remove pause button in net games
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}