hedgewars/VGSHandlers.inc
branchhedgeroid
changeset 6328 d14adf1c7721
parent 6302 db8bdbb34e03
child 6553 91365db8b82c
--- a/hedgewars/VGSHandlers.inc	Sat Nov 12 15:48:55 2011 +0100
+++ b/hedgewars/VGSHandlers.inc	Sat Nov 12 17:06:49 2011 +0100
@@ -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 = 2) 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