diff --git a/reaction/code/q3_ui/ui_servers2.c b/reaction/code/q3_ui/ui_servers2.c index 4a975a96..36fc1d77 100644 --- a/reaction/code/q3_ui/ui_servers2.c +++ b/reaction/code/q3_ui/ui_servers2.c @@ -88,6 +88,8 @@ MULTIPLAYER MENU (SERVER BROWSER) #define UIAS_GLOBAL5 5 #define UIAS_FAVORITES 6 +#define UI_MAX_MASTER_SERVERS 5 + #define SORT_HOST 0 #define SORT_MAP 1 #define SORT_CLIENTS 2 @@ -242,8 +244,8 @@ typedef struct { static arenaservers_t g_arenaservers; -static servernode_t g_globalserverlist[MAX_GLOBALSERVERS]; -static int g_numglobalservers; +static servernode_t g_globalserverlist[UI_MAX_MASTER_SERVERS][MAX_GLOBALSERVERS]; +static int g_numglobalservers[UI_MAX_MASTER_SERVERS]; static servernode_t g_localserverlist[MAX_LOCALSERVERS]; static int g_numlocalservers; static servernode_t g_favoriteserverlist[MAX_FAVORITESERVERS]; @@ -1134,8 +1136,8 @@ int ArenaServers_SetType( int type ) case UIAS_GLOBAL4: case UIAS_GLOBAL5: g_arenaservers.remove.generic.flags |= (QMF_INACTIVE|QMF_HIDDEN); - g_arenaservers.serverlist = g_globalserverlist; - g_arenaservers.numservers = &g_numglobalservers; + g_arenaservers.serverlist = g_globalserverlist[type-UIAS_GLOBAL1]; + g_arenaservers.numservers = &g_numglobalservers[type-UIAS_GLOBAL1]; g_arenaservers.maxservers = MAX_GLOBALSERVERS; break;