From c9f7978e8d42a1f3e2f9f3a45fd01b83c38b2612 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 20 May 2023 14:27:22 +0200 Subject: [PATCH] Show the correct key to join a team in the team selection interface; it fixes #2836 --- qcsrc/client/hud/panel/scoreboard.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 8d6fcee56..2f6bc474c 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -2322,9 +2322,9 @@ void Scoreboard_Draw() if (scoreboard_ui_enabled == 2) { if (scoreboard_selected_team) - str = sprintf(_("^7Press ^3%s^7 to join the selected team"), getcommandkey(_("jump"), "+jump")); + str = sprintf(_("^7Press ^3%s^7 to join the selected team"), translate_key("SPACE")); else - str = sprintf(_("^7Press ^3%s^7 to auto-select a team and join"), getcommandkey(_("jump"), "+jump")); + str = sprintf(_("^7Press ^3%s^7 to auto-select a team and join"), translate_key("SPACE")); drawcolorcodedstring(pos + '0.5 0 0' * (panel_size.x - stringwidth(str, true, sb_gameinfo_detail_fontsize)), str, sb_gameinfo_detail_fontsize, panel_fg_alpha, DRAWFLAG_NORMAL); pos.y += sb_gameinfo_detail_fontsize.y + hud_fontsize.y * 0.3; -- 2.39.2