rename teamplay_default to teamplay_mode, stop using the "teamplay" cvar (more cleanu...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / teamplay.qc
index d7a73f7d65f648f9cb41345ea500c79bdab50530..b001e4a4a2cd46f00f542860a6ca63f9482be4be 100644 (file)
@@ -162,9 +162,7 @@ void ActivateTeamplay()
 {
        float teamplay_default;
 
-       teamplay_default = cvar_or("teamplay_default", 3);
-       cvar_set("teamplay", teamplay_default);
-
+       serverflags |= SERVERFLAG_TEAMPLAY;
        teams_matter = 1;
 }
 
@@ -177,7 +175,6 @@ void InitGameplayMode()
        VoteReset();
 
        teams_matter = 0;
-       cvar_set("teamplay", "0");
 
        // make sure only ONE type is selected
        ReadGameCvars();