From: terencehill Date: Sat, 11 Jun 2022 17:25:09 +0000 (+0200) Subject: Scoreboard UI: remove Enter to join if no player is selected because it isn't really... X-Git-Tag: xonotic-v0.8.6~409^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ba387c2e8ff4a160328ec6dcbd9e4c0b1058e905;p=xonotic%2Fxonotic-data.pk3dir.git Scoreboard UI: remove Enter to join if no player is selected because it isn't really needed and is bugged in team games --- diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 416564cc9..656fdbfd7 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)); } }