]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Oops, forgot to commit changes of main.qc in the previous commit
authorterencehill <piuntn@gmail.com>
Sat, 23 Jul 2022 17:30:49 +0000 (19:30 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 23 Jul 2022 17:30:49 +0000 (19:30 +0200)
commands.cfg
qcsrc/client/main.qc

index 9899cf0f55ae936965dc24f647f68e87078bc69a..9dd270012708d06e0a54c45ce635121bbe3ce3f4 100644 (file)
@@ -150,6 +150,7 @@ alias radar "qc_cmd_cl hud radar ${* ?}"
 alias scoreboard_columns_help "qc_cmd_cl hud scoreboard_columns_help"
 alias scoreboard_columns_set "qc_cmd_cl hud scoreboard_columns_set ${* ?}"
 
+set _scoreboard_team_selection_available 0 // set to 1 by CSQC
 alias _menu_showteamselect1 "_scoreboard_team_selection 1"
 alias _menu_showteamselect0 "menu_showteamselect"
 alias scoreboard_team_selection "_menu_showteamselect$_scoreboard_team_selection_available"
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);