From: terencehill Date: Tue, 30 May 2023 22:47:11 +0000 (+0200) Subject: Use the correct team selection command in the keybinder and in other 2 places X-Git-Tag: xonotic-v0.8.6~47 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=11619b0a1c009e78cb27f4143a534ddfac68062d;p=xonotic%2Fxonotic-data.pk3dir.git Use the correct team selection command in the keybinder and in other 2 places --- 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"); } }