diff options
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/cl_main.c | 5 | ||||
-rw-r--r-- | src/client/cl_ui.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/client/cl_main.c b/src/client/cl_main.c index 15df946f..81cb98ac 100644 --- a/src/client/cl_main.c +++ b/src/client/cl_main.c @@ -3561,11 +3561,14 @@ void CL_Shutdown( void ) { static void CL_SetServerInfo(serverInfo_t *server, const char *info, int ping) { if (server) { if (info) { + const char *game; + server->clients = atoi(Info_ValueForKey(info, "clients")); Q_strncpyz(server->hostName,Info_ValueForKey(info, "hostname"), MAX_HOSTNAME_LENGTH ); Q_strncpyz(server->mapName, Info_ValueForKey(info, "mapname"), MAX_NAME_LENGTH); server->maxClients = atoi(Info_ValueForKey(info, "sv_maxclients")); - Q_strncpyz(server->game,Info_ValueForKey(info, "game"), MAX_NAME_LENGTH); + game = Info_ValueForKey(info, "game"); + Q_strncpyz(server->game, (game[0]) ? game : BASEGAME, MAX_NAME_LENGTH); server->gameType = atoi(Info_ValueForKey(info, "gametype")); server->netType = atoi(Info_ValueForKey(info, "nettype")); server->minPing = atoi(Info_ValueForKey(info, "minping")); diff --git a/src/client/cl_ui.c b/src/client/cl_ui.c index faa2dbab..ef53ebd8 100644 --- a/src/client/cl_ui.c +++ b/src/client/cl_ui.c @@ -458,6 +458,9 @@ static int LAN_CompareServers( int source, int sortKey, int sortDir, int s1, int } break; + case SORT_GAME: + res = Q_stricmp( server1->game, server2->game ); + break; case SORT_MAP: res = Q_stricmp( server1->mapName, server2->mapName ); break; |