]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/mutator/gamemode_cts.qc
Console: reduce verbosity
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator / gamemode_cts.qc
index 6d756fc679b615c74b878927f51838d1ab9aa72b..5e509a9daa10164088643b869edd2ab4951d7fd9 100644 (file)
@@ -11,11 +11,12 @@ REGISTER_MUTATOR(cts, false)
        {
                if (time > 1) // game loads at time 1
                        error("This is a game type and it cannot be added at runtime.");
-               cts_Initialize();
 
                g_race_qualifying = true;
                independent_players = 1;
-               SetLimits(0, 0, 0, -1);
+               SetLimits(0, 0, -1, -1);
+
+               cts_Initialize();
        }
 
        MUTATOR_ONROLLBACK_OR_REMOVE
@@ -216,16 +217,6 @@ MUTATOR_HOOKFUNCTION(cts, reset_map_global)
        return false;
 }
 
-MUTATOR_HOOKFUNCTION(cts, PlayerPreThink)
-{SELFPARAM();
-       if(IS_SPEC(self) || IS_OBSERVER(self))
-       if(g_race_qualifying)
-       if(msg_entity.enemy.race_laptime)
-               race_SendNextCheckpoint(msg_entity.enemy, 1);
-
-       return false;
-}
-
 MUTATOR_HOOKFUNCTION(cts, ClientConnect)
 {SELFPARAM();
        race_PreparePlayer();