hedgewars/uTeams.pas
changeset 12253 8e9603088f99
parent 12172 fe2946e2a859
child 12276 12f28d866c76
equal deleted inserted replaced
12252:5ac38cf14d91 12253:8e9603088f99
   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     if CurrentTeam^.ExtDriven then
   334     AddVoice(sndYesSir, CurrentTeam^.voicepack);
   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;
       
   345     if cHedgehogTurnTime < 1000000 then
   335     if cHedgehogTurnTime < 1000000 then
   346         ReadyTimeLeft:= cReadyDelay;
   336         ReadyTimeLeft:= cReadyDelay;
   347     s:= ansistring(CurrentTeam^.TeamName);
   337     s:= ansistring(CurrentTeam^.TeamName);
   348     AddCaption(FormatA(trmsg[sidReady], s), cWhiteColor, capgrpGameState)
   338     AddCaption(FormatA(trmsg[sidReady], s), cWhiteColor, capgrpGameState)
   349     end
   339     end
   350 else
   340 else
   351     begin
   341     begin
   352     if TurnTimeLeft > 0 then
   342     if TurnTimeLeft > 0 then
   353         begin
   343         AddVoice(sndYesSir, CurrentTeam^.voicepack);
   354         if GetRandom(2) = 0 then
       
   355              AddVoice(sndIllGetYou, CurrentTeam^.voicepack)
       
   356         else AddVoice(sndJustYouWait, CurrentTeam^.voicepack)
       
   357         end;
       
   358     ReadyTimeLeft:= 0
   344     ReadyTimeLeft:= 0
   359     end;
   345     end;
   360 end;
   346 end;
   361 
   347 
   362 function AddTeam(TeamColor: Longword): PTeam;
   348 function AddTeam(TeamColor: Longword): PTeam;