From: Rudolf Polzer Date: Wed, 7 Sep 2011 18:59:15 +0000 (+0200) Subject: menu: be more robust about menu_skin, reset to default on error X-Git-Tag: xonotic-v0.6.0~40^2~157 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5dd9b03eecb44879adc30de6f9a3f6a8417771a9;p=xonotic%2Fxonotic-data.pk3dir.git menu: be more robust about menu_skin, reset to default on error this helps csqc find the mouse cursor --- diff --git a/qcsrc/menu/menu.qc b/qcsrc/menu/menu.qc index edaea1231..741749a57 100644 --- a/qcsrc/menu/menu.qc +++ b/qcsrc/menu/menu.qc @@ -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)