hedgewars/uGearsHedgehog.pas
changeset 8744 6c87486fd89b
parent 8658 e7df553193ba
child 8753 1dfc456b7d50
--- a/hedgewars/uGearsHedgehog.pas	Sun Mar 17 10:25:19 2013 -0400
+++ b/hedgewars/uGearsHedgehog.pas	Sun Mar 17 14:09:54 2013 -0400
@@ -428,7 +428,7 @@
                 newGear^.Target.X:= TargetPoint.X;
                 newGear^.Target.Y:= TargetPoint.Y
                 end;
-            if (newGear <> nil) and (newGear^.CollisionMask and $80 <> 0) then newGear^.CollisionMask:= newGear^.CollisionMask and (not $80);
+            if (newGear <> nil) and (newGear^.CollisionMask and lfCurrentHog <> 0) then newGear^.CollisionMask:= newGear^.CollisionMask and (not lfCurrentHog);
 
             // Clear FollowGear if using on a rope/parachute/saucer etc so focus stays with the hog's movement
             if altUse then