--- a/hedgewars/uGearsRender.pas Tue Oct 08 23:38:45 2013 +0400
+++ b/hedgewars/uGearsRender.pas Wed Oct 09 20:16:34 2013 -0400
@@ -671,6 +671,25 @@
end;
amGirder: begin
DrawSpriteRotated(sprHandConstruction, hx, hy, sign, aangle);
+ if WorldEdge = weWrap then
+ begin
+ if hwRound(Gear^.X) < leftX+256 then
+ DrawSpriteClipped(sprGirder,
+ rightX+(ox-leftX)-256,
+ oy-256,
+ LongInt(topY)+WorldDy,
+ LongInt(rightX)+WorldDx,
+ cWaterLine+WorldDy,
+ LongInt(leftX)+WorldDx);
+ if hwRound(Gear^.X) > rightX-256 then
+ DrawSpriteClipped(sprGirder,
+ leftX-(rightX-ox)-256,
+ oy-256,
+ LongInt(topY)+WorldDy,
+ LongInt(rightX)+WorldDx,
+ cWaterLine+WorldDy,
+ LongInt(leftX)+WorldDx)
+ end;
DrawSpriteClipped(sprGirder,
ox-256,
oy-256,