hedgewars/uTeams.pas
changeset 12276 12f28d866c76
parent 12253 8e9603088f99
child 12322 9aa483762025
equal deleted inserted replaced
12275:b33585a529d5 12276:12f28d866c76
   329     end;
   329     end;
   330 IsGetAwayTime:= false;
   330 IsGetAwayTime:= false;
   331 
   331 
   332 if (TurnTimeLeft > 0) and (CurrentHedgehog^.BotLevel = 0) then
   332 if (TurnTimeLeft > 0) and (CurrentHedgehog^.BotLevel = 0) then
   333     begin
   333     begin
   334     AddVoice(sndYesSir, CurrentTeam^.voicepack);
   334     if CurrentTeam^.ExtDriven then
       
   335         begin
       
   336         if GetRandom(2) = 0 then
       
   337              AddVoice(sndIllGetYou, CurrentTeam^.voicepack)
       
   338         else AddVoice(sndJustYouWait, CurrentTeam^.voicepack)
       
   339         end
       
   340     else
       
   341         begin
       
   342         GetRandom(2); // needed to avoid extdriven desync
       
   343         AddVoice(sndYesSir, CurrentTeam^.voicepack);
       
   344         end;
   335     if cHedgehogTurnTime < 1000000 then
   345     if cHedgehogTurnTime < 1000000 then
   336         ReadyTimeLeft:= cReadyDelay;
   346         ReadyTimeLeft:= cReadyDelay;
   337     s:= ansistring(CurrentTeam^.TeamName);
   347     s:= ansistring(CurrentTeam^.TeamName);
   338     AddCaption(FormatA(trmsg[sidReady], s), cWhiteColor, capgrpGameState)
   348     AddCaption(FormatA(trmsg[sidReady], s), cWhiteColor, capgrpGameState)
   339     end
   349     end
   340 else
   350 else
   341     begin
   351     begin
   342     if TurnTimeLeft > 0 then
   352     if TurnTimeLeft > 0 then
   343         AddVoice(sndYesSir, CurrentTeam^.voicepack);
   353         begin
       
   354         if GetRandom(2) = 0 then
       
   355              AddVoice(sndIllGetYou, CurrentTeam^.voicepack)
       
   356         else AddVoice(sndJustYouWait, CurrentTeam^.voicepack)
       
   357         end;
   344     ReadyTimeLeft:= 0
   358     ReadyTimeLeft:= 0
   345     end;
   359     end;
   346 end;
   360 end;
   347 
   361 
   348 function AddTeam(TeamColor: Longword): PTeam;
   362 function AddTeam(TeamColor: Longword): PTeam;