From 3c23559e3b2251dd3ae4f1360ec077476e860550 Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 10 Sep 2018 13:42:08 +0200 Subject: [PATCH] Hide accuracy panel if it's too far down --- qcsrc/client/hud/panel/scoreboard.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 32ccccfca..faf184262 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -1602,7 +1602,7 @@ void Scoreboard_Draw() bool show_accuracy = (gametype != MAPINFO_TYPE_CTS && gametype != MAPINFO_TYPE_RACE && gametype != MAPINFO_TYPE_NEXBALL); - if (show_accuracy && autocvar_hud_panel_scoreboard_accuracy && !warmup_stage) + if (show_accuracy && autocvar_hud_panel_scoreboard_accuracy && !warmup_stage && pos.y > 0.91 * vid_conheight) pos = Scoreboard_AccuracyStats_Draw(pos, panel_bg_color, bg_size); if(gametype == MAPINFO_TYPE_CTS || gametype == MAPINFO_TYPE_RACE || (autocvar_hud_panel_scoreboard_ctf_leaderboard && gametype == MAPINFO_TYPE_CTF && STAT(CTF_SHOWLEADERBOARD))) { -- 2.39.2