# HG changeset patch # User nemo # Date 1313940260 14400 # Node ID 93e97d3a2c10fdb3ce0d470ec1772368b5052a0c # Parent 05445149f2d5f2f4fe0f46042c75ed35052c1c1e add check for other forms of flight too diff -r 05445149f2d5 -r 93e97d3a2c10 hedgewars/uGears.pas --- a/hedgewars/uGears.pas Sun Aug 21 09:26:33 2011 -0400 +++ b/hedgewars/uGears.pas Sun Aug 21 11:24:20 2011 -0400 @@ -1409,7 +1409,7 @@ begin t:= CheckGearsCollision(Ammo); // Just to avoid hogs on rope dodging fire. -if (CurAmmoGear <> nil) and (CurAmmoGear^.Kind = gtRope) and +if (CurAmmoGear <> nil) and ((CurAmmoGear^.Kind = gtRope) or (CurAmmoGear^.Kind = gtJetpack) or (CurAmmoGear^.Kind = gtBirdy)) and (CurrentHedgehog^.Gear <> nil) and (CurrentHedgehog^.Gear^.CollisionIndex = -1) and (sqr(hwRound(Ammo^.X) - hwRound(CurrentHedgehog^.Gear^.X)) + sqr(hwRound(Ammo^.Y) - hwRound(CurrentHedgehog^.Gear^.Y)) <= sqr(cHHRadius + Ammo^.Radius)) then begin