From 179013bc87ee418f676c0fa40e38a941c3e43730 Mon Sep 17 00:00:00 2001 From: Lyberta Date: Tue, 28 Mar 2017 11:52:37 +0300 Subject: [PATCH] Survival: Zero out round time at the beginning of the first round. --- qcsrc/server/mutators/mutator/gamemode_survival.qc | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.39.5