// Use real or frozen time and get the time limit
round_endtime = STAT(ROUNDENDTIME);
round_timelimit = STAT(ROUND_TIMELIMIT);
- round_curtime = (round_endtime ? round_endtime : time);
+
+ if(round_endtime)
+ round_curtime = round_endtime;
+ else if(timeout_last)
+ round_curtime = timeout_last;
+ else
+ round_curtime = time;
// Calculate time left
round_timeleft = HUD_Timer_TimeLeft(round_curtime, STAT(ROUNDSTARTTIME), round_timelimit);
void AnnounceNewLeader()
{
+ // Don't announce if in warmup or just started
+ if(warmup_stage || time - game_starttime < 1) return;
+
if(teamplay) {
if (WinningConditionHelper_equality)
Send_Notification(NOTIF_ALL, NULL, MSG_ANNCE, ANNCE_TEAM_LEADS_TIED);