hedgewars/HHHandlers.inc
changeset 5013 04789ba3f200
parent 4994 2d9a52d6ea24
child 5016 9347d82a26cc
--- a/hedgewars/HHHandlers.inc	Mon Mar 14 20:08:53 2011 +0300
+++ b/hedgewars/HHHandlers.inc	Wed Mar 16 17:25:05 2011 +0100
@@ -315,10 +315,7 @@
                     end;
                    amDrillStrike: AddGear(CurWeapon^.Pos, 0, gtAirAttack, 3, _0, _0, CurWeapon^.Timer);
                    //amMelonStrike: AddGear(CurWeapon^.Pos, 0, gtAirAttack, 4, _0, _0, 0);
-                     amStructure: begin
-                                  FollowGear:= AddGear(hwRound(lx) + hwSign(dX) * 7, hwRound(ly), gtStructure, 0, SignAs(_0_03, dX), _0, 0);
-                                  FollowGear^.Hedgehog:= Gear^.Hedgehog;
-                                  end;
+                     amStructure: CurAmmoGear:= AddGear(hwRound(X), hwRound(Y), gtStructure, 0, _0, _0, 0);
                   end;
 
         // Clear FollowGear if using on a rope/parachute/saucer etc so focus stays with the hog's movement