]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Freezetag: finally enable rounds in warmup stage as now they work well there too...
authorterencehill <piuntn@gmail.com>
Tue, 18 Dec 2012 00:43:54 +0000 (01:43 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 18 Dec 2012 11:22:54 +0000 (12:22 +0100)
qcsrc/server/mutators/gamemode_freezetag.qc
qcsrc/server/round_handler.qc

index 1629c688400d5acb311fb91c6a6862eef48999ac..1aad9d3c890b0dafb69f492878ad3bfa04638c52 100644 (file)
@@ -153,8 +153,8 @@ void freezetag_Freeze(entity attacker)
        self.freezetag_frozen = 1;
        self.freezetag_revive_progress = 0;
        self.health = 1;
-       if(inWarmupStage)
-               self.freezetag_frozen_timeout = time + 5;
+       // if(inWarmupStage)
+               // self.freezetag_frozen_timeout = time + 5;
 
        freezetag_count_alive_players();
 
index 9f7f939dcca9982f51211cc9cf56026dfe5936b1..622347c534ff65900b10186bf8821809a9d9c3f8 100644 (file)
@@ -3,9 +3,11 @@ void round_handler_Think()
        entity e;
        float f;
 
-       if(inWarmupStage || time < game_starttime)
+       if(time < game_starttime)
        {
-               self.nextthink = time + 1;
+               self.wait = FALSE;
+               round_handler_ResetCountdown();
+               self.nextthink = game_starttime + 1;
                return;
        }
 
@@ -89,7 +91,7 @@ void round_handler_Spawn(float() canRoundStart_func, float() canRoundEnd_func, f
 
 float round_handler_IsActive()
 {
-       return (round_handler && !inWarmupStage && time > game_starttime);
+       return (round_handler && time > game_starttime);
 }
 
 float round_handler_AwaitingNextRound()