# HG changeset patch # User nemo # Date 1272819199 0 # Node ID 244382ea33c2e5e2940fbb4a9c241c72b54fed67 # Parent b1fbf50da522556dcccc451c3e48fbee1ed227ab Revert switch behaviour (can't use AfterAttack here) remove unneeded value from jetpack definition diff -r b1fbf50da522 -r 244382ea33c2 hedgewars/GSHandlers.inc --- 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)^); diff -r b1fbf50da522 -r 244382ea33c2 hedgewars/uConsts.pas --- 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;