From: Lyberta Date: Tue, 28 Mar 2017 08:52:37 +0000 (+0300) Subject: Survival: Zero out round time at the beginning of the first round. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=179013bc87ee418f676c0fa40e38a941c3e43730;p=xonotic%2Fxonotic-data.pk3dir.git Survival: Zero out round time at the beginning of the first round. --- diff --git a/qcsrc/server/mutators/mutator/gamemode_survival.qc b/qcsrc/server/mutators/mutator/gamemode_survival.qc index ed4e56800..3d0748d39 100644 --- a/qcsrc/server/mutators/mutator/gamemode_survival.qc +++ b/qcsrc/server/mutators/mutator/gamemode_survival.qc @@ -1548,6 +1548,13 @@ MUTATOR_HOOKFUNCTION(surv, reset_map_global) surv_allowed_to_spawn = true; surv_numattackersalive = 0; surv_numdefendersalive = 0; + if (surv_roundtype == SURVIVAL_ROUND_FIRST) + { + FOREACH_CLIENT(IS_REAL_CLIENT(it), + { + it.surv_round_time_stat = 0; + }); + } return true; }