From 98850c65fbf265aba59221f55e883b49ae12f227 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 16 Sep 2023 15:44:48 +0200 Subject: [PATCH] Fix #2878 "Client startup executes font-xolonium.cfg twice" --- qcsrc/menu/menu.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/menu/menu.qc b/qcsrc/menu/menu.qc index 300be79d8..7796cbcca 100644 --- a/qcsrc/menu/menu.qc +++ b/qcsrc/menu/menu.qc @@ -126,7 +126,8 @@ void UpdateConWidthHeight(float w, float h, float p) { if (w != vidwidth_s || h != vidheight_s || p != vidpixelheight_s) { - if (updateConwidths(w, h, p)) localcmd(sprintf("\nexec %s\n", cvar_string("menu_font_cfg"))); + if (updateConwidths(w, h, p) && menuNotTheFirstFrame) + localcmd(sprintf("\nexec %s\n", cvar_string("menu_font_cfg"))); vidwidth_s = w; vidheight_s = h; vidpixelheight_s = p; -- 2.39.2