bouncy/noportal check after spawn
authornemo
Fri, 10 Apr 2015 11:14:53 -0400
changeset 10905 c0919d7e5ce9
parent 10903 c9a0cdee4267
child 10907 9b8e9813c6f8
bouncy/noportal check after spawn
hedgewars/uGearsHandlersMess.pas
--- a/hedgewars/uGearsHandlersMess.pas	Fri Apr 10 10:36:17 2015 -0400
+++ b/hedgewars/uGearsHandlersMess.pas	Fri Apr 10 11:14:53 2015 -0400
@@ -4213,6 +4213,7 @@
 
     // destroy portal if ground it was attached too is gone
     if (Land[hwRound(Gear^.Y), hwRound(Gear^.X)] <= lfAllObjMask)
+    or (Land[hwRound(Gear^.Y), hwRound(Gear^.X)] and lfBouncy <> 0)
     or (Gear^.Timer < 1)
     or (Gear^.Hedgehog^.Team <> CurrentHedgehog^.Team)
     or CheckCoordInWater(hwRound(Gear^.X), hwRound(Gear^.Y)) then