--- a/hedgewars/uAmmos.pas Thu Sep 10 03:02:38 2009 +0000
+++ b/hedgewars/uAmmos.pas Thu Sep 10 03:03:04 2009 +0000
@@ -272,9 +272,9 @@
begin
CurAmmo:= 0;
CurSlot:= 0;
- while (CurSlot <= cMaxSlotIndex) and
- (Ammo^[CurSlot, CurAmmo].Count = 0) and
- (Ammoz[Ammo^[CurSlot, CurAmmo].AmmoType].SkipTurns - CurrentTeam^.Clan^.TurnNumber >= 0)
+ while (CurSlot <= cMaxSlotIndex) and
+ ((Ammo^[CurSlot, CurAmmo].Count = 0) or
+ (Ammoz[Ammo^[CurSlot, CurAmmo].AmmoType].SkipTurns - CurrentTeam^.Clan^.TurnNumber >= 0))
do inc(CurSlot)
end
end;