From: z411 Date: Wed, 28 Apr 2021 21:13:52 +0000 (-0400) Subject: Disable item stats in duel X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=48ee8d8430d77aa841aadf0ac3c462e87464542a;p=xonotic%2Fxonotic-data.pk3dir.git Disable item stats in duel --- diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index fb1ae0569..83fa83033 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -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