hedgewars/uTeams.pas
changeset 10350 4e919f7b9d92
parent 10349 a51de45dcc42
child 10397 314164a9c912
equal deleted inserted replaced
10349:a51de45dcc42 10350:4e919f7b9d92
   702             if hasGone then
   702             if hasGone then
   703                 begin
   703                 begin
   704                 AddChatString('** '+ TeamName + ' is back');
   704                 AddChatString('** '+ TeamName + ' is back');
   705                 if not CurrentTeam^.ExtDriven then SendIPC(_S'g' + s);
   705                 if not CurrentTeam^.ExtDriven then SendIPC(_S'g' + s);
   706                 hasGone:= false;
   706                 hasGone:= false;
       
   707 
       
   708                 RecountTeamHealth(TeamsArray[t]);
       
   709 
       
   710                 if isGoneFlagPengingToBeUnset and (Owner = UserNick) then
       
   711                     ExtDriven:= false;
       
   712 
   707                 isGoneFlagPengingToBeUnset:= false;
   713                 isGoneFlagPengingToBeUnset:= false;
   708 
       
   709                 RecountTeamHealth(TeamsArray[t]);
       
   710 
       
   711                 if Owner = UserNick then
       
   712                     ExtDriven:= false
       
   713                 end;
   714                 end;
   714         end
   715         end
   715     else
   716     else
   716     begin
   717     begin
   717         TeamsArray[t]^.isGoneFlagPengingToBeUnset:= true;
   718         TeamsArray[t]^.isGoneFlagPengingToBeUnset:= true;