]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
menu: fix mapinfo initialization
authorRudolf Polzer <divverent@xonotic.org>
Thu, 29 Dec 2011 10:50:36 +0000 (11:50 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 29 Dec 2011 10:50:36 +0000 (11:50 +0100)
qcsrc/menu/menu.qc

index ff91f5359482f24761af700ef724d6bc0f6fe317..536295fc2f479f66dbdd08641c10a4a49330bac6 100644 (file)
@@ -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") != "")
        {