]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use the correct team selection command in the keybinder and in other 2 places
authorterencehill <piuntn@gmail.com>
Tue, 30 May 2023 22:47:11 +0000 (00:47 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 30 May 2023 22:47:11 +0000 (00:47 +0200)
qcsrc/client/hud/panel/infomessages.qc
qcsrc/menu/xonotic/keybinder.qc
qcsrc/server/command/cmd.qc

index e85a7f30c3e82a022a543d640ae0621f90bf1a0b..94bfa47511a9d7ece3909eb565b66e86a3758852 100644 (file)
@@ -200,7 +200,7 @@ void HUD_InfoMessages()
                                        s = strcat(blinkcolor, _("Teamnumbers are unbalanced!"));
                                        tm = GetTeam(myteam, false);
                                        if (tm && tm.team != NUM_SPECTATOR && tm.team_size == ts_max)
-                                               s = strcat(s, sprintf(_(" Press ^3%s%s to adjust"), getcommandkey(_("team selection"), "scoreboard_team_selection"), blinkcolor));
+                                               s = strcat(s, sprintf(_(" Press ^3%s%s to adjust"), getcommandkey(_("team selection"), "team_selection_show"), blinkcolor));
                                        InfoMessage(s);
                                }
                        }
index a53f4a8862a718e157abd6ae3089b836552c5f03..9188263324a0b6a1b27441adf4c636122bcc95e8 100644 (file)
@@ -114,7 +114,7 @@ void KeyBinds_BuildList()
 
        KEYBIND_HEADER(_("Teamplay"));
        KEYBIND_DEF("team_auto"                             , _("auto-join team"));
-       KEYBIND_DEF("scoreboard_team_selection"             , _("team selection"));
+       KEYBIND_DEF("team_selection_show"                   , _("team selection"));
        KEYBIND_DEF("spec"                                  , _("spectate"));
        KEYBIND_EMPTY_LINE();
 
index 0eae7e0e67ad8a5537dfb81b3bdea554dcc84aff..f93880a682d45d6b50c7983c18778b9968ebc1f4 100644 (file)
@@ -123,7 +123,7 @@ void ClientCommand_clientversion(entity caller, int request, int argc)  // inter
                                        else if (teamplay && !autocvar_sv_spectate && !(Player_GetForcedTeamIndex(caller) > 0))
                                        {
                                                TRANSMUTE(Observer, caller);  // really?
-                                               stuffcmd(caller, "scoreboard_team_selection\n");
+                                               stuffcmd(caller, "team_selection_show\n");
                                        }
                                }