Follow piano gear when it's spawned by hedgehog
authorWuzzy <Wuzzy2@mail.ru>
Mon, 08 Jun 2020 20:41:24 +0200
changeset 15610 d347785fd61c
parent 15609 4ae2ebe812be
child 15611 be8fe5e0789e
Follow piano gear when it's spawned by hedgehog
hedgewars/uGearsHedgehog.pas
--- a/hedgewars/uGearsHedgehog.pas	Mon Jun 08 20:40:04 2020 +0200
+++ b/hedgewars/uGearsHedgehog.pas	Mon Jun 08 20:41:24 2020 +0200
@@ -529,7 +529,8 @@
                   amMineStrike, amDrillStrike,
                       amRubber, amMinigun: CurAmmoGear:= newGear;
             end;
-            if CurAmmoType = amCake then FollowGear:= newGear;
+            if (CurAmmoType = amCake) or (CurAmmoType = amPiano) then
+                FollowGear:= newGear;
 
             if ((CurAmmoType = amMine) or (CurAmmoType = amSMine) or (CurAmmoType = amAirMine)) and (GameFlags and gfInfAttack <> 0) then
                 newGear^.FlightTime:= GameTicks + min(TurnTimeLeft,1000)