From: terencehill Date: Tue, 7 Jun 2022 21:41:29 +0000 (+0200) Subject: Scoreboard UI: fix not being able to switch to the Rankings panel X-Git-Tag: xonotic-v0.8.6~409^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f7642e19315e545d020cad7a19f8dde9cfb8de58;p=xonotic%2Fxonotic-data.pk3dir.git Scoreboard UI: fix not being able to switch to the Rankings panel --- diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index dfab7d61b..531e0c356 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -277,8 +277,8 @@ float HUD_Scoreboard_InputEvent(float bInputType, float nPrimary, float nSeconda ++scoreboard_selected_panel; if (scoreboard_selected_panel == SB_PANEL_RANKINGS && !rankings_cnt) ++scoreboard_selected_panel; - if (scoreboard_selected_panel >= SB_PANEL_MAX) - scoreboard_selected_panel = 1; + if (scoreboard_selected_panel > SB_PANEL_MAX) + scoreboard_selected_panel = SB_PANEL_FIRST; scoreboard_selected_panel_time = time; }