Touch: Parse pause command when tapping pause button instead of toggling pause directly
authorWuzzy <Wuzzy2@mail.ru>
Mon, 26 Nov 2018 21:13:49 +0100
changeset 14304 055eae933482
parent 14303 2978d6405d88
child 14305 575baea4108b
Touch: Parse pause command when tapping pause button instead of toggling pause directly
hedgewars/uTouch.pas
--- a/hedgewars/uTouch.pas	Mon Nov 26 21:10:33 2018 +0100
+++ b/hedgewars/uTouch.pas	Mon Nov 26 21:13:49 2018 +0100
@@ -149,7 +149,7 @@
 
 if isOnWidget(pauseButton, finger^) then
     begin
-    isPaused:= not isPaused;
+    ParseTeamCommand('pause');
     moveCursor:= false;
     finger^.pressedWidget:= @pauseButton;
     exit;