mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-27 22:42:09 +00:00
Cache servers for each master server in q3_ui, otherwise servers from last updated master for shown for all Internet# sources.
This commit is contained in:
parent
02f3664b2e
commit
2cb7f25093
1 changed files with 6 additions and 4 deletions
|
@ -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];
|
||||
|
@ -1156,8 +1158,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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue