From: terencehill Date: Mon, 10 Sep 2018 11:42:08 +0000 (+0200) Subject: Hide accuracy panel if it's too far down X-Git-Tag: xonotic-v0.8.5~1841^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3c23559e3b2251dd3ae4f1360ec077476e860550;p=xonotic%2Fxonotic-data.pk3dir.git Hide accuracy panel if it's too far down --- 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))) {