hedgewars/uWorld.pas
changeset 3798 7dcfdd595b30
parent 3774 af0e68ca273e
child 3799 5341dc5a8919
equal deleted inserted replaced
3797:e097914ac0e2 3798:7dcfdd595b30
   858 if fastUntilLag then DrawCentered(0, (cScreenHeight shr 1), SyncTexture);
   858 if fastUntilLag then DrawCentered(0, (cScreenHeight shr 1), SyncTexture);
   859 if isPaused then DrawCentered(0, (cScreenHeight shr 1), PauseTexture);
   859 if isPaused then DrawCentered(0, (cScreenHeight shr 1), PauseTexture);
   860 if ReadyTimeLeft > 0 then
   860 if ReadyTimeLeft > 0 then
   861     begin
   861     begin
   862     // TODO: move outside drawing code or do a spearate step in ugears?
   862     // TODO: move outside drawing code or do a spearate step in ugears?
   863     if (ReadyTimeLeft = 1) or (ReadyTimeLeft < Lag) then
   863     if (ReadyTimeLeft = 2000) or ((ReadyTimeLeft - Lag < 2000) and (ReadyTimeLeft > 2000)) then
   864         if (CurrentTeam^.ExtDriven or (CurrentHedgehog^.BotLevel > 0)) then
   864         PlaySound(sndComeonthen, CurrentTeam^.voicepack);
   865             PlaySound(sndIllGetYou, CurrentTeam^.voicepack)
       
   866         else
       
   867             PlaySound(sndYesSir, CurrentTeam^.voicepack);
       
   868 
   865 
   869     if ReadyTimeLeft > Lag then
   866     if ReadyTimeLeft > Lag then
   870         dec(ReadyTimeLeft, Lag)
   867         dec(ReadyTimeLeft, Lag)
   871     else
   868     else
   872         ReadyTimeLeft:= 0;
   869         ReadyTimeLeft:= 0;