hedgewars/uAmmos.pas
changeset 2837 6a1c18598b2c
parent 2819 8c3f078bc67d
child 2838 4a79fd4f04a8
equal deleted inserted replaced
2836:36b1766ad85c 2837:6a1c18598b2c
    72        begin
    72        begin
    73        TryDo(mi[Ammoz[a].Slot] <= cMaxSlotAmmoIndex, 'Ammo slot overflow', true);
    73        TryDo(mi[Ammoz[a].Slot] <= cMaxSlotAmmoIndex, 'Ammo slot overflow', true);
    74        Ammo^[Ammoz[a].Slot, mi[Ammoz[a].Slot]]:= Ammoz[a].Ammo;
    74        Ammo^[Ammoz[a].Slot, mi[Ammoz[a].Slot]]:= Ammoz[a].Ammo;
    75 
    75 
    76        Ammo^[Ammoz[a].Slot, mi[Ammoz[a].Slot]].Count:= AMMO_INFINITE;
    76        Ammo^[Ammoz[a].Slot, mi[Ammoz[a].Slot]].Count:= AMMO_INFINITE;
       
    77        Ammo^[Ammoz[a].Slot, mi[Ammoz[a].Slot]].InitialCount:= cnts[a];
    77 
    78 
    78        inc(mi[Ammoz[a].Slot])
    79        inc(mi[Ammoz[a].Slot])
    79        end
    80        end
    80     end
    81     end
    81 end;
    82 end;