Don't use AfterAttack in saucer - CurAmmoType is switched at this point
authornemo
Mon, 11 Oct 2010 11:36:47 -0400
changeset 3959 e7ea30323993
parent 3958 c2ece733fd96
child 3960 ada50f8d4186
Don't use AfterAttack in saucer - CurAmmoType is switched at this point
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Mon Oct 11 00:15:01 2010 -0400
+++ b/hedgewars/GSHandlers.inc	Mon Oct 11 11:36:47 2010 -0400
@@ -3092,7 +3092,8 @@
 
     HHGear := PHedgehog(Gear^.Hedgehog)^.Gear;
     FollowGear := HHGear;
-    AfterAttack;
+    OnUsedAmmo(PHedgehog(Gear^.Hedgehog)^);
+    ApplyAmmoChanges(PHedgehog(Gear^.Hedgehog)^);
     with HHGear^ do
     begin
         State := State and not gstAttacking;