]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix #2878 "Client startup executes font-xolonium.cfg twice"
authorterencehill <piuntn@gmail.com>
Sat, 16 Sep 2023 13:44:48 +0000 (15:44 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 16 Sep 2023 13:44:48 +0000 (15:44 +0200)
qcsrc/menu/menu.qc

index 300be79d87f282359f9d42f7bce7d6409639b4a3..7796cbccaa1de271031755ca8f1d7a6316aaa647 100644 (file)
@@ -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;