From 11619b0a1c009e78cb27f4143a534ddfac68062d Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 31 May 2023 00:47:11 +0200 Subject: [PATCH] Use the correct team selection command in the keybinder and in other 2 places --- qcsrc/client/hud/panel/infomessages.qc | 2 +- qcsrc/menu/xonotic/keybinder.qc | 2 +- qcsrc/server/command/cmd.qc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qcsrc/client/hud/panel/infomessages.qc b/qcsrc/client/hud/panel/infomessages.qc index e85a7f30c..94bfa4751 100644 --- a/qcsrc/client/hud/panel/infomessages.qc +++ b/qcsrc/client/hud/panel/infomessages.qc @@ -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); } } diff --git a/qcsrc/menu/xonotic/keybinder.qc b/qcsrc/menu/xonotic/keybinder.qc index a53f4a886..918826332 100644 --- a/qcsrc/menu/xonotic/keybinder.qc +++ b/qcsrc/menu/xonotic/keybinder.qc @@ -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(); diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc index 0eae7e0e6..f93880a68 100644 --- a/qcsrc/server/command/cmd.qc +++ b/qcsrc/server/command/cmd.qc @@ -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"); } } -- 2.39.2