hedgewars/uGearsHedgehog.pas
changeset 7733 a1476c09403f
parent 7730 2013733f9ca9
child 7738 abcc7012de0b
--- a/hedgewars/uGearsHedgehog.pas	Tue Oct 09 00:38:17 2012 +0400
+++ b/hedgewars/uGearsHedgehog.pas	Mon Oct 08 21:07:18 2012 -0400
@@ -398,7 +398,7 @@
             newGear^.Target.X:= TargetPoint.X;
             newGear^.Target.Y:= TargetPoint.Y
             end;
-        if newGear <> nil then newGear^.CollisionMask:= $FF7F;
+        if (newGear <> nil) and (newGear^.CollisionMask and $80 <> 0) then newGear^.CollisionMask:= newGear^.CollisionMask and not $80;
 
         // Clear FollowGear if using on a rope/parachute/saucer etc so focus stays with the hog's movement
         if altUse then