From: Samual Lenks Date: Thu, 10 Oct 2013 19:27:15 +0000 (-0400) Subject: Registration has to be done much earlier, not in configuration X-Git-Tag: xonotic-v0.8.0~256^2~29 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e42c1f90a912a5ff77b99b53f8e5b28dc55e3cb9;p=xonotic%2Fxonotic-data.pk3dir.git Registration has to be done much earlier, not in configuration --- diff --git a/qcsrc/menu/menu.qc b/qcsrc/menu/menu.qc index eb68729ba..d2e7fe7f1 100644 --- a/qcsrc/menu/menu.qc +++ b/qcsrc/menu/menu.qc @@ -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(); diff --git a/qcsrc/menu/xonotic/serverlist.c b/qcsrc/menu/xonotic/serverlist.c index 749ea8d6f..e03c61201 100644 --- a/qcsrc/menu/xonotic/serverlist.c +++ b/qcsrc/menu/xonotic/serverlist.c @@ -436,9 +436,6 @@ void XonoticServerList_configureXonoticServerList(entity me) // clear list me.nItems = 0; - - // build categories - RegisterSLCategories(); } void XonoticServerList_setSelected(entity me, float i) {