# HG changeset patch # User sheepluva # Date 1418307623 -3600 # Node ID 79e466c393f768b5e3f443c422f043971fa920e5 # Parent a3872ffdeab1175a3bd31dc71ed0513e92724274 pas2c doesn't like semi-colons after repeat diff -r a3872ffdeab1 -r 79e466c393f7 hedgewars/uGearsHandlersMess.pas --- 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 diff -r a3872ffdeab1 -r 79e466c393f7 hedgewars/uGearsUtils.pas --- 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);