hedgewars/uCollisions.pas
changeset 1528 3fee15104c1d
parent 1506 a4ab75470ce1
child 1753 2ccba26f1aa4
--- a/hedgewars/uCollisions.pas	Thu Dec 04 21:17:03 2008 +0000
+++ b/hedgewars/uCollisions.pas	Thu Dec 04 21:59:25 2008 +0000
@@ -203,7 +203,7 @@
       if (Gear <> cGear) and
          (sqr(mx - x) + sqr(my - y) <= sqr(Radius + Gear^.Radius + 2)) and
          ((mx > x) xor (Dir > 0)) then
-         if (cGear^.Kind in [gtHedgehog, gtMine]) then
+         if (cGear^.Kind in [gtHedgehog, gtMine]) and ((Gear^.State and gstNotKickable) = 0) then
              begin
              with cGear^ do
                   begin
@@ -255,7 +255,7 @@
       if (Gear <> cGear) and
          (sqr(mx - x) + sqr(my - y) <= sqr(Radius + Gear^.Radius + 2)) and
          ((my > y) xor (Dir > 0)) then
-         if (cGear^.Kind in [gtHedgehog, gtMine]) then
+         if (cGear^.Kind in [gtHedgehog, gtMine]) and ((Gear^.State and gstNotKickable) = 0) then
              begin
              with cGear^ do
                   begin