]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Survival: Zero out round time at the beginning of the first round.
authorLyberta <lyberta@lyberta.net>
Tue, 28 Mar 2017 08:52:37 +0000 (11:52 +0300)
committerLyberta <lyberta@lyberta.net>
Tue, 28 Mar 2017 08:52:37 +0000 (11:52 +0300)
qcsrc/server/mutators/mutator/gamemode_survival.qc

index ed4e568005374f29d29c013e803fff887090fc83..3d0748d39d2a3dc9890adba177b5878b4c01e4c9 100644 (file)
@@ -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;
 }