Set ammo to amNothing after using up the current ammo. This should reduce noob fail where they blow themselves up w/ bazooka.
authornemo
Wed, 06 Oct 2010 20:20:54 -0400
changeset 3931 fd04228971b3
parent 3929 9a4bbc1f67a2
child 3934 8cdbc0505f18
Set ammo to amNothing after using up the current ammo. This should reduce noob fail where they blow themselves up w/ bazooka.
hedgewars/uAmmos.pas
--- a/hedgewars/uAmmos.pas	Wed Oct 06 15:37:56 2010 -0400
+++ b/hedgewars/uAmmos.pas	Wed Oct 06 20:20:54 2010 -0400
@@ -243,7 +243,8 @@
             if Count = 0 then
                 begin
                 PackAmmo(Ammo, Ammoz[AmmoType].Slot);
-                SwitchNotHeldAmmo(Hedgehog)
+                //SwitchNotHeldAmmo(Hedgehog);
+                CurAmmoType:= amNothing
                 end
             end
     end