From e42c1f90a912a5ff77b99b53f8e5b28dc55e3cb9 Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Thu, 10 Oct 2013 15:27:15 -0400 Subject: [PATCH] Registration has to be done much earlier, not in configuration --- qcsrc/menu/menu.qc | 2 ++ qcsrc/menu/xonotic/serverlist.c | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) 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) { -- 2.39.2