hedgewars/uGearsRender.pas
changeset 9809 1e32628eb167
parent 9768 08799c901a42
child 9950 2759212a27de
child 9998 736015b847e3
--- a/hedgewars/uGearsRender.pas	Fri Dec 20 15:06:18 2013 +0400
+++ b/hedgewars/uGearsRender.pas	Sat Dec 21 01:14:59 2013 +0400
@@ -678,7 +678,7 @@
                     DrawSpriteRotated(sprHandConstruction, hx, hy, sign, aangle);
                     if WorldEdge = weWrap then
                         begin
-                        if hwRound(Gear^.X) < leftX+256 then
+                        if hwRound(Gear^.X) < LongInt(leftX) + 256 then
                             DrawSpriteClipped(sprGirder,
                                             rightX+(ox-leftX)-256,
                                             oy-256,