hedgewars/uTeams.pas
changeset 783 4f59db6f147d
parent 764 7513452b1d51
child 800 e95f16b7ec80
--- a/hedgewars/uTeams.pas	Sun Feb 03 17:02:20 2008 +0000
+++ b/hedgewars/uTeams.pas	Tue Feb 05 17:53:38 2008 +0000
@@ -87,7 +87,6 @@
 procedure RecountTeamHealth(team: PTeam);
 procedure RestoreTeamsFromSave;
 function CheckForWin: boolean;
-procedure SetWeapon(weap: TAmmoType);
 procedure SendStats;
 
 implementation
@@ -319,19 +318,6 @@
    TeamsArray[t]^.ExtDriven:= false
 end;
 
-procedure SetWeapon(weap: TAmmoType);
-var t: LongInt;
-begin
-t:= cMaxSlotAmmoIndex;
-with CurrentTeam^ do
-     with Hedgehogs[CurrHedgehog] do
-          while (Ammo^[CurSlot, CurAmmo].AmmoType <> weap) and (t >= 0) do
-                begin
-                ParseCommand('/slot ' + chr(49 + Ammoz[TAmmoType(weap)].Slot), true);
-                dec(t)
-                end
-end;
-
 procedure SendStats;
 var i, t: LongInt;
     msd: Longword; msdhh: PHedgehog;