# HG changeset patch
# User nemo
# Date 1321474577 18000
# Node ID 9acbf54e9379f399cf0f14212466f04f85ac17c5
# Parent  14718b2685a300985af570b0d7d467582fc00a11
prevent flinging up into any land.

diff -r 14718b2685a3 -r 9acbf54e9379 hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Wed Nov 16 21:35:14 2011 +0300
+++ b/hedgewars/GSHandlers.inc	Wed Nov 16 15:16:17 2011 -0500
@@ -1300,7 +1300,7 @@
         end
     else
         begin
-        if CheckLandValue(hwRound(Gear^.X), hwRound(Gear^.Y + Gear^.dY + cGravity), lfIndestructible) then
+        if CheckLandValue(hwRound(Gear^.X), hwRound(Gear^.Y + Gear^.dY + cGravity), $FF00) then
             begin
             Gear^.dY := Gear^.dY + cGravity;
             Gear^.Y := Gear^.Y + Gear^.dY
@@ -1309,7 +1309,7 @@
         end;
 
     Gear^.X := Gear^.X + HHGear^.dX;
-    if CheckLandValue(hwRound(Gear^.X), hwRound(Gear^.Y)-cHHRadius, lfIndestructible) then
+    if CheckLandValue(hwRound(Gear^.X), hwRound(Gear^.Y)-cHHRadius, $FF00) then
         begin
         HHGear^.X := Gear^.X;
         HHGear^.Y := Gear^.Y - int2hwFloat(cHHRadius)