# HG changeset patch # User nemo # Date 1323304713 18000 # Node ID b0dc69bb1f54f68ed4675f9ebbb2e531a0956e7d # Parent f134b50e7ac737c67e7300bf760dfb9b96921334 oops. this is more efficient anyway. diff -r f134b50e7ac7 -r b0dc69bb1f54 hedgewars/uAmmos.pas --- a/hedgewars/uAmmos.pas Wed Dec 07 23:35:13 2011 +0100 +++ b/hedgewars/uAmmos.pas Wed Dec 07 19:38:33 2011 -0500 @@ -428,10 +428,9 @@ for t:= 0 to Pred(TeamsCount) do with TeamsArray[t]^ do for i:= 0 to cMaxHHIndex do - begin - FillAmmoStore(Hedgehogs[i].Ammo, InitialCounts[Hedgehogs[i].AmmoStore]); - Hedgehogs[i].CurAmmoType:= amNothing - end; + Hedgehogs[i].CurAmmoType:= amNothing; + +for i:= 0 to Pred(StoreCnt) do FillAmmoStore(StoresList[i], InitialCounts[i]); for a:= Low(TAmmoType) to High(TAmmoType) do if Ammoz[a].SkipTurns >= 10000 then dec(Ammoz[a].SkipTurns,10000)