Revert switch behaviour (can't use AfterAttack here) remove unneeded value from jetpack definition
authornemo
Sun, 02 May 2010 16:53:19 +0000
changeset 3403 244382ea33c2
parent 3402 b1fbf50da522
child 3404 d445798e5fe2
Revert switch behaviour (can't use AfterAttack here) remove unneeded value from jetpack definition
hedgewars/GSHandlers.inc
hedgewars/uConsts.pas
--- a/hedgewars/GSHandlers.inc	Sun May 02 16:28:06 2010 +0000
+++ b/hedgewars/GSHandlers.inc	Sun May 02 16:53:19 2010 +0000
@@ -2020,7 +2020,8 @@
     HHGear:= PHedgehog(Gear^.Hedgehog)^.Gear;
     Msg:= Gear^.Message and not gm_Switch;
     DeleteGear(Gear);
-    AfterAttack;
+    OnUsedAmmo(PHedgehog(HHGear^.Hedgehog)^);
+    ApplyAmmoChanges(PHedgehog(HHGear^.Hedgehog)^);
 
     HHGear:= CurrentHedgehog^.Gear;
     ApplyAmmoChanges(PHedgehog(HHGear^.Hedgehog)^);
--- a/hedgewars/uConsts.pas	Sun May 02 16:28:06 2010 +0000
+++ b/hedgewars/uConsts.pas	Sun May 02 16:53:19 2010 +0000
@@ -1838,7 +1838,7 @@
                           ammoprop_AltAttack;
                 Count: 1;
                 InitialCount: 1;
-                NumPerTurn: 1;
+                NumPerTurn: 0;
                 Timer: 0;
                 Pos: 0;
                 AmmoType: amJetpack;