From: Mario Date: Wed, 7 May 2014 19:08:00 +0000 (+1000) Subject: timelimit_overtimes -1 = infinite overtimes X-Git-Tag: xonotic-v0.8.0~201^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a8d5df2d37e850ba63e502168f5f2b20bcd396a2;p=xonotic%2Fxonotic-data.pk3dir.git timelimit_overtimes -1 = infinite overtimes --- diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index 875a0c3e6..d14ecc704 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -1576,7 +1576,7 @@ float InitiateSuddenDeath() // - for this timelimit_overtime needs to be >0 of course // - also check the winning condition calculated in the previous frame and only add normal overtime // again, if at the point at which timelimit would be extended again, still no winner was found - if (!autocvar_g_campaign && (checkrules_overtimesadded >= 0) && (checkrules_overtimesadded < autocvar_timelimit_overtimes) && autocvar_timelimit_overtime && !(g_race && !g_race_qualifying)) + if (!autocvar_g_campaign && (checkrules_overtimesadded >= 0) && (checkrules_overtimesadded < autocvar_timelimit_overtimes || autocvar_timelimit_overtimes == -1) && autocvar_timelimit_overtime && !(g_race && !g_race_qualifying)) { return 1; // need to call InitiateOvertime later }