hedgewars/uGearsHandlersMess.pas
changeset 10659 79e466c393f7
parent 10657 f2507005be87
child 10663 9bbb29d2bd68
--- a/hedgewars/uGearsHandlersMess.pas	Thu Dec 11 07:52:51 2014 -0500
+++ b/hedgewars/uGearsHandlersMess.pas	Thu Dec 11 15:20:23 2014 +0100
@@ -4622,14 +4622,14 @@
         if WorldEdge = weWrap then
             begin
             if x > LongInt(rightX) then
-                repeat;
-                dec(x,  playWidth);
-                dec(rx, playWidth);
+                repeat
+                    dec(x,  playWidth);
+                    dec(rx, playWidth);
                 until x <= LongInt(rightX)
             else if x < LongInt(leftX) then
-                repeat;
-                inc(x,  playWidth);
-                inc(rx, playWidth);
+                repeat
+                    inc(x,  playWidth);
+                    inc(rx, playWidth);
                 until x >= LongInt(leftX);
             end
         else if (WorldEdge = weBounce) then