hedgewars/uTeams.pas
changeset 1678 c8deca7b1e3c
parent 1669 b709e061577e
child 1687 a73c8cda1ed1
equal deleted inserted replaced
1677:0655bb13af01 1678:c8deca7b1e3c
    78 			ClanIndex: LongInt;
    78 			ClanIndex: LongInt;
    79 			TurnNumber: LongWord;
    79 			TurnNumber: LongWord;
    80 			end;
    80 			end;
    81 
    81 
    82 var CurrentTeam: PTeam = nil;
    82 var CurrentTeam: PTeam = nil;
       
    83 	PreviousTeam: PTeam = nil;
    83 	CurrentHedgehog: PHedgehog = nil;
    84 	CurrentHedgehog: PHedgehog = nil;
    84 	TeamsArray: array[0..Pred(cMaxTeams)] of PTeam;
    85 	TeamsArray: array[0..Pred(cMaxTeams)] of PTeam;
    85 	TeamsCount: Longword = 0;
    86 	TeamsCount: Longword = 0;
    86 	ClansArray: array[0..Pred(cMaxTeams)] of PClan;
    87 	ClansArray: array[0..Pred(cMaxTeams)] of PClan;
    87 	ClansCount: Longword = 0;
    88 	ClansCount: Longword = 0;
   153     PrevHH, PrevTeam: LongWord;
   154     PrevHH, PrevTeam: LongWord;
   154 begin
   155 begin
   155 FreeActionsList;
   156 FreeActionsList;
   156 TargetPoint.X:= NoPointX;
   157 TargetPoint.X:= NoPointX;
   157 TryDo(CurrentTeam <> nil, 'nil Team', true);
   158 TryDo(CurrentTeam <> nil, 'nil Team', true);
       
   159 PreviousTeam:= CurrentTeam;
   158 
   160 
   159 with CurrentHedgehog^ do
   161 with CurrentHedgehog^ do
   160 	if Gear <> nil then
   162 	if Gear <> nil then
   161 		begin
   163 		begin
   162 		AttacksNum:= 0;
   164 		AttacksNum:= 0;