equal
deleted
inserted
replaced
855 |
855 |
856 DrawChat; |
856 DrawChat; |
857 |
857 |
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 |
|
861 begin |
|
862 // TODO: move outside drawing code or do a spearate step in ugears? |
|
863 if (ReadyTimeLeft = 2000) or ((ReadyTimeLeft - Lag < 2000) and (ReadyTimeLeft > 2000)) then |
|
864 PlaySound(sndComeonthen, CurrentTeam^.voicepack); |
|
865 |
|
866 if ReadyTimeLeft > Lag then |
|
867 dec(ReadyTimeLeft, Lag) |
|
868 else |
|
869 ReadyTimeLeft:= 0; |
|
870 DrawCentered(0, (cScreenHeight shr 1), ReadyTexture); |
|
871 end; |
|
872 if not isFirstFrame and (missionTimer <> 0) or isPaused or fastUntilLag or (GameState = gsConfirm) then |
860 if not isFirstFrame and (missionTimer <> 0) or isPaused or fastUntilLag or (GameState = gsConfirm) then |
873 begin |
861 begin |
874 if (ReadyTimeLeft = 0) and (missionTimer > 0) then dec(missionTimer, Lag); |
862 if (ReadyTimeLeft = 0) and (missionTimer > 0) then dec(missionTimer, Lag); |
875 if missionTimer < 0 then missionTimer:= 0; // avoid subtracting below 0 |
863 if missionTimer < 0 then missionTimer:= 0; // avoid subtracting below 0 |
876 if missionTex <> nil then |
864 if missionTex <> nil then |