# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1591641684 -7200
# Node ID d347785fd61c8858ae1b5f5b80145d2d0553dc57
# Parent  4ae2ebe812be4e0171095a0a9ea689d8f8cd81fb
Follow piano gear when it's spawned by hedgehog

diff -r 4ae2ebe812be -r d347785fd61c 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)