]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/mutator/gamemode_cts.qc
Only change limits when adding the mutator (might fix incorrect timelimits)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator / gamemode_cts.qc
index 982da6ea3e6307699aead50e51b4fafe666ec05a..a220801eefb6ed3ee46a5ccdbfbfe5b491572700 100644 (file)
@@ -7,15 +7,15 @@ void cts_Initialize();
 
 REGISTER_MUTATOR(cts, false)
 {
-       g_race_qualifying = true;
-       independent_players = 1;
-       SetLimits(0, 0, 0, -1);
-
        MUTATOR_ONADD
        {
                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);
        }
 
        MUTATOR_ONROLLBACK_OR_REMOVE