From: terencehill Date: Sat, 16 Sep 2023 13:44:48 +0000 (+0200) Subject: Fix #2878 "Client startup executes font-xolonium.cfg twice" X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=98850c65fbf265aba59221f55e883b49ae12f227;p=xonotic%2Fxonotic-data.pk3dir.git Fix #2878 "Client startup executes font-xolonium.cfg twice" --- 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;