hedgewars/uWorld.pas
changeset 10319 240775460dc5
parent 10318 c2e81eea375f
child 10320 0f9ad60f738c
--- a/hedgewars/uWorld.pas	Tue Jun 17 15:18:07 2014 +0200
+++ b/hedgewars/uWorld.pas	Tue Jun 17 15:39:29 2014 +0200
@@ -1485,7 +1485,7 @@
 ScreenBottom:= (WorldDy - trunc(cScreenHeight/cScaleFactor) - (cScreenHeight div 2) + cWaterLine);
 
 // note: offsetY is negative!
-offsetY:= 5 * max(-145,min(0, CWaterLine + WorldDy - ViewBottomY)); //10 * Min(0, -145 - ScreenBottom);
+offsetY:= 10 *  Min(0, -145 - ScreenBottom); // TODO limit this in the other direction too
 
 if (cReducedQuality and rqNoBackground) = 0 then
     begin