]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Registration has to be done much earlier, not in configuration
authorSamual Lenks <samual@xonotic.org>
Thu, 10 Oct 2013 19:27:15 +0000 (15:27 -0400)
committerSamual Lenks <samual@xonotic.org>
Thu, 10 Oct 2013 19:27:15 +0000 (15:27 -0400)
qcsrc/menu/menu.qc
qcsrc/menu/xonotic/serverlist.c

index eb68729bad9bacc5d80e5d80b4602dea51c91192..d2e7fe7f1e4239243855fe958c5e49d21ce16541 100644 (file)
@@ -77,6 +77,8 @@ void m_init()
        CALL_ACCUMULATED_FUNCTION(RegisterWeapons);
        CALL_ACCUMULATED_FUNCTION(RegisterGametypes);
 
+       RegisterSLCategories();
+
        float ddsload = cvar("r_texture_dds_load");
        float texcomp = cvar("gl_texturecompression");
        updateCompression();
index 749ea8d6f8c2bacbc551747342e9126994709aca..e03c61201544853be8345f2d6afec12ebfa5616f 100644 (file)
@@ -436,9 +436,6 @@ void XonoticServerList_configureXonoticServerList(entity me)
 
        // clear list
        me.nItems = 0;
-
-       // build categories
-       RegisterSLCategories();
 }
 void XonoticServerList_setSelected(entity me, float i)
 {