--- 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