# HG changeset patch # User nemo # Date 1382810329 14400 # Node ID 1f20cc6a642a22d0ca9d3f461a0d676f11824ed1 # Parent 9577634bd2841ba0b811e75b7205934c48796e1d Remove this looping past F10. causes infinite loop with no weapons. Besides, should always have skip in last slot unless a script is screwing with it. diff -r 9577634bd284 -r 1f20cc6a642a hedgewars/uGearsHedgehog.pas --- a/hedgewars/uGearsHedgehog.pas Thu Oct 24 21:18:22 2013 -0400 +++ b/hedgewars/uGearsHedgehog.pas Sat Oct 26 13:58:49 2013 -0400 @@ -116,7 +116,7 @@ // Try again in the next slot if CurAmmoType = prevAmmo then begin - if slot >= cMaxSlotIndex then slot:= 0 else inc(slot); + if slot < cMaxSlotIndex then inc(slot); HHGear^.MsgParam:= slot; ChangeAmmo(HHGear) end