]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Show the correct key to join a team in the team selection interface; it fixes #2836
authorterencehill <piuntn@gmail.com>
Sat, 20 May 2023 12:27:22 +0000 (14:27 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 20 May 2023 12:28:45 +0000 (14:28 +0200)
qcsrc/client/hud/panel/scoreboard.qc

index 8d6fcee5633a2a877deab46c192be9fe461fd9f8..2f6bc474c5f1d1dcd7080f6cca455450877cd02f 100644 (file)
@@ -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;