From: Rudolf Polzer Date: Thu, 29 Dec 2011 10:50:36 +0000 (+0100) Subject: menu: fix mapinfo initialization X-Git-Tag: xonotic-v0.6.0~74^2~29 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f0781dc2580e9a46a77f9c3cc2b9146a26a5156e;p=xonotic%2Fxonotic-data.pk3dir.git menu: fix mapinfo initialization --- diff --git a/qcsrc/menu/menu.qc b/qcsrc/menu/menu.qc index ff91f5359..536295fc2 100644 --- a/qcsrc/menu/menu.qc +++ b/qcsrc/menu/menu.qc @@ -50,6 +50,10 @@ void m_init() dprint(s, ": ", getgamedirinfo(i, GETGAMEDIRINFO_DESCRIPTION)); } } + + // needs to be done so early because of the constants they create + RegisterWeapons(); + RegisterGametypes(); } float MENU_ASPECT = 1.25; // 1280x1024 @@ -117,10 +121,6 @@ void m_init_delayed() return; menuInitialized = 1; - // needs to be done so early because of the constants they create - RegisterWeapons(); - RegisterGametypes(); - fh = -1; if(cvar_string("menu_skin") != "") {