mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
- fix the parsing of player numbers. oops :)
This commit is contained in:
parent
915674733c
commit
e3bf60bda3
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ QW_AddHeartbeat (server_t **servers_p, int slen, struct sockaddr_in *addr, char
|
|||
int sequence, players;
|
||||
|
||||
sequence = atoi (buf + 2);
|
||||
players = atoi (buf + strlen (buf + 2) + 1);
|
||||
players = atoi (strchr (buf + 2, '\n') + 1);
|
||||
|
||||
for (i = 0; i < slen; i++) {
|
||||
if (servers[i].addr.sin_addr.s_addr == addr->sin_addr.s_addr
|
||||
|
|
Loading…
Reference in a new issue