Oops, forgot to commit changes of main.qc in the previous commit
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / main.qc
index 62c5da4c9dc89acd27669e0a896c72bcec0ced14..b2825bc825c79cab7e0e9a6ef5fde80e59a78a2e 100644 (file)
@@ -44,6 +44,9 @@
 
 void CSQC_Init()
 {
+       cvar_set("_scoreboard_team_selection_available", "1");
+       cvar_set("_scoreboard_team_selection", "0"); // in case it has been left set to 1
+
        prvm_language = strzone(cvar_string("prvm_language"));
 
 #ifdef WATERMARK
@@ -149,6 +152,7 @@ void CSQC_Init()
 // CSQC_Shutdown : Called every time the CSQC code is shutdown (changing maps, quitting, etc)
 void Shutdown()
 {
+       cvar_set("_scoreboard_team_selection_available", "0");
        WarpZone_Shutdown();
 
        delete(teams);