hedgewars/VGSHandlers.inc
changeset 6291 cfd2483b8c97
parent 6179 b529f88d37d0
child 6302 db8bdbb34e03
--- a/hedgewars/VGSHandlers.inc	Sat Nov 05 20:43:20 2011 +0300
+++ b/hedgewars/VGSHandlers.inc	Sat Nov 05 17:24:09 2011 -0400
@@ -79,7 +79,8 @@
         if round(X) < cLeftScreenBorder then X:= X + cScreenSpace else
         if round(X) > cRightScreenBorder then X:= X - cScreenSpace;
         // if round(Y) < (LAND_HEIGHT - 1024 - 75) then Y:= Y + 25.0; // For if flag is set for flakes rising upwards?
-        if round(Y) - 225 > LAND_HEIGHT then Y:= Y - (1024 + 300); // TODO - configure in theme (jellies for example could use limited range)
+        if (Gear^.Layer > 1) and (round(Y) - 225 > LAND_HEIGHT) then Y:= Y - (1024 + 300) // TODO - configure in theme (jellies for example could use limited range)
+        else if (Gear^.Layer < 2) and (round(Y) + 50 > LAND_HEIGHT) then Y:= Y - (1024 + 25);
         Timer:= 0;
         tdX:= 0;
         tdY:= 0