prevent flinging up into any land.
authornemo
Wed, 16 Nov 2011 15:16:17 -0500
changeset 6389 9acbf54e9379
parent 6388 14718b2685a3
child 6390 3807d4cad077
prevent flinging up into any land.
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)