From ba387c2e8ff4a160328ec6dcbd9e4c0b1058e905 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 11 Jun 2022 19:25:09 +0200 Subject: [PATCH 1/1] Scoreboard UI: remove Enter to join if no player is selected because it isn't really needed and is bugged in team games --- qcsrc/client/hud/panel/scoreboard.qc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 416564cc9c..656fdbfd7b 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -435,12 +435,7 @@ float HUD_Scoreboard_InputEvent(float bInputType, float nPrimary, float nSeconda localcmd(sprintf("cmd selectteam %s; cmd join\n", team_name)); HUD_Scoreboard_UI_Disable(); } - else if (!scoreboard_selected_player || (hudShiftState & S_SHIFT)) - { - localcmd("join\n"); - HUD_Scoreboard_UI_Disable(); - } - else + else if (scoreboard_selected_player) localcmd(sprintf("spectate %d\n", scoreboard_selected_player.sv_entnum + 1)); } } -- 2.39.2