changeset 7110 | c91d33837b0d |
parent 7037 | 7edce323558f |
child 7337 | c224cd2d32f3 |
--- a/hedgewars/uAmmos.pas Thu May 03 22:48:02 2012 +0200 +++ b/hedgewars/uAmmos.pas Tue May 22 11:19:32 2012 +0200 @@ -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;