changeset 7037 | 7edce323558f |
parent 6990 | 40e5af28d026 |
child 7337 | c224cd2d32f3 |
--- a/hedgewars/uAmmos.pas Thu May 10 11:12:06 2012 +0400 +++ b/hedgewars/uAmmos.pas Thu May 10 11:29:18 2012 +0400 @@ -288,11 +288,9 @@ with Hedgehog.Ammo^[Slot, ami] do if (AmmoType = Ammo) then if Hedgehog.Team^.Clan^.TurnNumber > Ammoz[AmmoType].SkipTurns then - begin - HHHasAmmo:= Count; - exit; - end - else exit; + exit(Count) + else + exit(0); inc(ami) end; end;