]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Hide accuracy panel if it's too far down
authorterencehill <piuntn@gmail.com>
Mon, 10 Sep 2018 11:42:08 +0000 (13:42 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 10 Sep 2018 11:42:08 +0000 (13:42 +0200)
qcsrc/client/hud/panel/scoreboard.qc

index 32ccccfca3355dedfa235c20e96f316ee61ed2b4..faf18426252b5e8c4128bfbb2fcafdecf3228ae3 100644 (file)
@@ -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))) {