--- 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
--- a/hedgewars/uGearsUtils.pas Thu Dec 11 07:52:51 2014 -0500
+++ b/hedgewars/uGearsUtils.pas Thu Dec 11 15:20:23 2014 +0100
@@ -105,7 +105,7 @@
// we might have to run twice if weWrap is enabled
wrap:= false;
-repeat;
+repeat
fX:= int2hwFloat(X);
fY:= int2hwFloat(Y);