{
float starttime = STAT(GAMESTARTTIME);
float roundstarttime = STAT(ROUNDSTARTTIME);
+ float game_timeout = STAT(GAME_TIMEOUT);
bool rounds;
float countdown;
- // z411 LOG_INFOF("time: %d - starttime: %d - roundstarttime: %d", time, starttime, roundstarttime);
-
- if(roundstarttime == -1)
+ if(roundstarttime == -1 || game_timeout)
{
Local_Notification(MSG_CENTER, CENTER_COUNTDOWN_ROUNDSTOP);
delete(this);
announcer_countdown = NULL;
return;
}
+
//if(roundstarttime >= starttime)
// starttime = roundstarttime;
if(starttime <= time && roundstarttime != starttime) // game start time has passed
// counting down to rounds
if(rounds)
{
- if (timeout_status != TIMEOUT_ACTIVE) {
- Local_Notification(MSG_CENTER, CENTER_COUNTDOWN_ROUNDSTART, countdown_rounded);
- Notification annce_num = Announcer_PickNumber(CNT_ROUNDSTART, countdown_rounded);
- if(annce_num != NULL)
- Local_Notification(MSG_ANNCE, annce_num);
- }
+ Local_Notification(MSG_CENTER, CENTER_COUNTDOWN_ROUNDSTART, countdown_rounded);
+ Notification annce_num = Announcer_PickNumber(CNT_ROUNDSTART, countdown_rounded);
+ if(annce_num != NULL)
+ Local_Notification(MSG_ANNCE, annce_num);
this.nextthink = (roundstarttime - (countdown - 1));
}
else
// z411 set title
if(time < STAT(GAMESTARTTIME) && !warmup_stage) {
- //if(IS_GAMETYPE(DUEL)) {
- //if(g_duel) {
if(gametype == MAPINFO_TYPE_DUEL) {
entity pl1 = players.sort_next;
entity pl2 = pl1.sort_next;