hedgewars/uGears.pas
changeset 5806 6778f0a7d896
parent 5744 746de1d303d2
child 5810 552371cc69cc
equal deleted inserted replaced
5805:a0e81ddb0fd4 5806:6778f0a7d896
  1745 t:= aTot;
  1745 t:= aTot;
  1746 i:= Low(TAmmoType);
  1746 i:= Low(TAmmoType);
  1747 if (t > 0) then
  1747 if (t > 0) then
  1748     begin
  1748     begin
  1749     t:= GetRandom(t);
  1749     t:= GetRandom(t);
  1750     AddFileLog(inttostr(t)+' --------------');
       
  1751     while t >= 0 do
  1750     while t >= 0 do
  1752       begin
  1751       begin
  1753       inc(i);
  1752       inc(i);
  1754       if (Ammoz[i].Ammo.Propz and ammoprop_Utility) = 0 then
  1753       if (Ammoz[i].Ammo.Propz and ammoprop_Utility) = 0 then
  1755           dec(t, Ammoz[i].Probability)
  1754           dec(t, Ammoz[i].Probability)