oft-requested, should make the shoppa guys happy, probably, but, knowing them, I'm sure someone will complain
authornemo
Sat, 17 Nov 2012 09:03:47 -0500
changeset 8051 f26422ef0333
parent 8048 e14daa2508fc
child 8054 39f8ea1a441f
child 8057 93e16240f178
oft-requested, should make the shoppa guys happy, probably, but, knowing them, I'm sure someone will complain
hedgewars/uGearsHedgehog.pas
--- a/hedgewars/uGearsHedgehog.pas	Fri Nov 16 06:14:18 2012 +0100
+++ b/hedgewars/uGearsHedgehog.pas	Sat Nov 17 09:03:47 2012 -0500
@@ -103,6 +103,13 @@
             LoadHedgehogHat(HHGear^.Hedgehog^, 'Reserved/chef')
         else if prevAmmo = amKnife then
             LoadHedgehogHat(HHGear^.Hedgehog^, Hat);
+        end;
+    // Try again in the next slot
+    if CurAmmoType = prevAmmo then 
+        begin
+        if slot >= cMaxSlotIndex then slot:= 0 else inc(slot);
+        HHGear^.MsgParam:= slot;
+        ChangeAmmo(HHGear)
         end
     end
 end;