hedgewars/uGearsHandlersMess.pas
changeset 13326 23ade5604f8d
parent 13323 9071600f7b22
child 13328 15d804dcd736
--- a/hedgewars/uGearsHandlersMess.pas	Thu Apr 12 16:56:06 2018 +0200
+++ b/hedgewars/uGearsHandlersMess.pas	Fri Apr 13 00:17:30 2018 +0200
@@ -1277,7 +1277,7 @@
                     VGear^.Tint:= $FFFFFF00 or ($FF * (i + 1) div (steps));
 
                     // reached edge of land. assume infinite beam. Extend it way out past camera
-                    if (round(toX) and LAND_WIDTH_MASK <> 0)
+                    if ((round(toX) and LAND_WIDTH_MASK <> 0) and (not (WorldEdge in [weBounce, weWrap])))
                     or (round(toY) and LAND_HEIGHT_MASK <> 0) then
                         // only extend if not under water
                         if not CheckCoordInWater(round(toX), round(toY)) then