# HG changeset patch # User nemo # Date 1266789719 0 # Node ID 4a79fd4f04a84c24ab634fcf372a9761542f6496 # Parent 6a1c18598b2ca663353a4f77b74c14adf77199d3 ok... how about this? diff -r 6a1c18598b2c -r 4a79fd4f04a8 hedgewars/uAmmos.pas --- a/hedgewars/uAmmos.pas Sun Feb 21 21:55:34 2010 +0000 +++ b/hedgewars/uAmmos.pas Sun Feb 21 22:01:59 2010 +0000 @@ -55,7 +55,6 @@ FillChar(Ammo^, sizeof(Ammo^), 0); for a:= Low(TAmmoType) to High(TAmmoType) do begin - Ammo^[Ammoz[a].Slot, mi[Ammoz[a].Slot]].InitialCount:= 0; if cnts[a] > 0 then begin TryDo(mi[Ammoz[a].Slot] <= cMaxSlotAmmoIndex, 'Ammo slot overflow', true); @@ -74,7 +73,7 @@ Ammo^[Ammoz[a].Slot, mi[Ammoz[a].Slot]]:= Ammoz[a].Ammo; Ammo^[Ammoz[a].Slot, mi[Ammoz[a].Slot]].Count:= AMMO_INFINITE; - Ammo^[Ammoz[a].Slot, mi[Ammoz[a].Slot]].InitialCount:= cnts[a]; + Ammo^[Ammoz[a].Slot, mi[Ammoz[a].Slot]].InitialCount:= 0; inc(mi[Ammoz[a].Slot]) end