hedgewars/uGearsRender.pas
changeset 14303 6015b74eea55
parent 14221 1bdce164eb72
child 14307 7a7c090f96f6
--- a/hedgewars/uGearsRender.pas	Fri Nov 23 21:22:26 2018 +0100
+++ b/hedgewars/uGearsRender.pas	Fri Nov 23 15:54:23 2018 -0500
@@ -816,30 +816,30 @@
                         begin
                         if WorldEdge = weWrap then
                             begin
-                            if hwRound(Gear^.X) < LongInt(leftX) + 256 then
+                            if hwRound(Gear^.X) < leftX + 256 then
                                 DrawSpriteClipped(sprGirder,
                                                 rightX+(ox-leftX)-256,
                                                 oy-256,
                                                 LongInt(topY)+WorldDy,
-                                                LongInt(rightX)+WorldDx,
+                                                rightX+WorldDx,
                                                 cWaterLine+WorldDy,
-                                                LongInt(leftX)+WorldDx);
-                            if hwRound(Gear^.X) > LongInt(rightX) - 256 then
+                                                leftX+WorldDx);
+                            if hwRound(Gear^.X) > rightX - 256 then
                                 DrawSpriteClipped(sprGirder,
                                                 leftX-(rightX-ox)-256,
                                                 oy-256,
                                                 LongInt(topY)+WorldDy,
-                                                LongInt(rightX)+WorldDx,
+                                                rightX+WorldDx,
                                                 cWaterLine+WorldDy,
-                                                LongInt(leftX)+WorldDx)
+                                                leftX+WorldDx)
                             end;
                         DrawSpriteClipped(sprGirder,
                                         ox-256,
                                         oy-256,
                                         LongInt(topY)+WorldDy,
-                                        LongInt(rightX)+WorldDx,
+                                        rightX+WorldDx,
                                         cWaterLine+WorldDy,
-                                        LongInt(leftX)+WorldDx)
+                                        leftX+WorldDx)
                         end
                     else if cBuildMaxDist > 0 then
                         begin