Add g_humansplayers (found by server) and g_needpass (cvar) to serverinfo (#4702)
This commit is contained in:
parent
97ed3650d7
commit
0a6f873999
4 changed files with 15 additions and 2 deletions
|
@ -3382,6 +3382,8 @@ static void CL_SetServerInfo(serverInfo_t *server, const char *info, int ping) {
|
|||
server->minPing = atoi(Info_ValueForKey(info, "minping"));
|
||||
server->maxPing = atoi(Info_ValueForKey(info, "maxping"));
|
||||
server->punkbuster = atoi(Info_ValueForKey(info, "punkbuster"));
|
||||
server->g_humanplayers = atoi(Info_ValueForKey(info, "g_humanplayers"));
|
||||
server->g_needpass = atoi(Info_ValueForKey(info, "g_needpass"));
|
||||
}
|
||||
server->ping = ping;
|
||||
}
|
||||
|
@ -3500,6 +3502,8 @@ void CL_ServerInfoPacket( netadr_t from, msg_t *msg ) {
|
|||
cls.localServers[i].gameType = 0;
|
||||
cls.localServers[i].netType = from.type;
|
||||
cls.localServers[i].punkbuster = 0;
|
||||
cls.localServers[i].g_humanplayers = 0;
|
||||
cls.localServers[i].g_needpass = 0;
|
||||
|
||||
Q_strncpyz( info, MSG_ReadString( msg ), MAX_INFO_STRING );
|
||||
if (strlen(info)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue