--- a/hedgewars/uGearsRender.pas Fri Dec 09 08:18:50 2022 +0100
+++ b/hedgewars/uGearsRender.pas Tue Dec 13 21:21:55 2022 +0100
@@ -558,7 +558,7 @@
ty:= round(ly + ay * (max(LAND_WIDTH,4096) div 2));
break;
end;
- if ((WorldEdge = weWrap) or (WorldEdge = weBounce)) and (ty < -cCamLimitY) and (ay < 0) then
+ if ((WorldEdge = weWrap) or (WorldEdge = weBounce)) and ((ty < -cCamLimitY) or (ty >= TopY + cCamLimitY)) then
break;
if ((hogLR < 0) and (tx < LeftX)) or ((hogLR > 0) and (tx >= RightX)) then