]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
menu: be more robust about menu_skin, reset to default on error
authorRudolf Polzer <divVerent@xonotic.org>
Wed, 7 Sep 2011 18:59:15 +0000 (20:59 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 7 Sep 2011 18:59:15 +0000 (20:59 +0200)
this helps csqc find the mouse cursor

qcsrc/menu/menu.qc

index edaea12312a7b61cc1dc7e4ac039f24a73cbc5ea..741749a57442a8eed2f46e90434d985654d84841 100644 (file)
@@ -121,7 +121,8 @@ void() m_init_delayed =
        if(fh < 0)
        if(cvar_defstring("menu_skin") != "")
        {
-               draw_currentSkin = strcat("gfx/menu/", cvar_defstring("menu_skin"));
+               cvar_set("menu_skin", cvar_defstring("menu_skin"));
+               draw_currentSkin = strcat("gfx/menu/", cvar_string("menu_skin"));
                fh = fopen(language_filename(strcat(draw_currentSkin, "/skinvalues.txt")), FILE_READ);
        }
        if(fh < 0)