network games haven't shown up right

origin
stpohle 21 years ago
parent 9458b32502
commit 9fb7fa348e

@ -1,4 +1,4 @@
/* $Id: broadcast.c,v 1.3 2005/03/28 16:38:34 stpohle Exp $
/* $Id: broadcast.c,v 1.4 2005/03/28 21:06:41 stpohle Exp $
* find broadcasted games and also hold in this list
* all games which the ogc reports us */
@ -149,7 +149,7 @@ void broadcast_loop () {
while (inlen > 0) {
if (pgi->gamename[0] != 0 && pgi->broadcast) {
if (pgi->h.typ == PKG_gameinfo && pgi->gamename[0] != 0) {
int nr;
nr = broadcast_find (addr.host, addr.port);
@ -161,9 +161,9 @@ void broadcast_loop () {
strncpy (broadcast_list[nr].version, pgi->version, LEN_VERSION);
strncpy (broadcast_list[nr].gamename, pgi->gamename, LEN_GAMENAME);
d_printf ("broadcast_loop: Add: nr:%d game:%s %s:%s\n", nr,
d_printf ("broadcast_loop: Add: nr:%d game:%s %s:%s (lan:%d)\n", nr,
broadcast_list[nr].gamename, broadcast_list[nr].host,
broadcast_list[nr].port);
broadcast_list[nr].port, pgi->broadcast);
broadcast_list[nr].timestamp = timestamp;
broadcast_list[nr].ping = timestamp - pgi->timestamp;

Loading…
Cancel
Save