]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Disable item stats in duel
authorz411 <z411@omaera.org>
Wed, 28 Apr 2021 21:13:52 +0000 (17:13 -0400)
committerz411 <z411@omaera.org>
Wed, 28 Apr 2021 21:13:52 +0000 (17:13 -0400)
qcsrc/client/hud/panel/scoreboard.qc

index fb1ae05693f40c1763db7d80073af6647eb178fd..83fa830336544b4b93654da8e8804c7c26179b27 100644 (file)
@@ -2137,6 +2137,8 @@ bool Scoreboard_ItemStats_WouldDraw(float ypos)
                return false;
        if (!autocvar_hud_panel_scoreboard_itemstats || !g_inventory || warmup_stage || ypos > 0.91 * vid_conheight)
                return false;
+       if (gametype == MAPINFO_TYPE_DUEL) // z411 : We already show items in our duel scoreboard.
+               return false;
 
        if (time < scoreboard_time + autocvar_hud_panel_scoreboard_itemstats_showdelay
                && ypos > autocvar_hud_panel_scoreboard_itemstats_showdelay_minpos * vid_conheight