about summary refs log tree commit diff
path: root/src/engine/client/client.c
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-11-08 19:54:18 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-11-08 19:54:18 +0000
commit6475366e5955e71706c8cd37f07452732a5e1458 (patch)
treee645a02ec68ef794e5fbae4d87a9adad10c14197 /src/engine/client/client.c
parent6dd9aead7340080773fbac0996912f7fc18f091b (diff)
downloadzcatch-6475366e5955e71706c8cd37f07452732a5e1458.tar.gz
zcatch-6475366e5955e71706c8cd37f07452732a5e1458.zip
fixed lan browser. fixed major bug in the caused the server not to report correctly
Diffstat (limited to 'src/engine/client/client.c')
-rw-r--r--src/engine/client/client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/client/client.c b/src/engine/client/client.c
index 092f6805..43f3fb3d 100644
--- a/src/engine/client/client.c
+++ b/src/engine/client/client.c
@@ -523,8 +523,8 @@ static void client_process_packet(NETPACKET *packet)
 			int size = packet->data_size-sizeof(SERVERBROWSE_LIST);
 			int num = size/sizeof(NETADDR4);
 			NETADDR4 *addrs = (NETADDR4 *)((char*)packet->data+sizeof(SERVERBROWSE_LIST));
-			
 			int i;
+			
 			for(i = 0; i < num; i++)
 			{
 				NETADDR4 addr = addrs[i];
@@ -555,6 +555,8 @@ static void client_process_packet(NETPACKET *packet)
 			SERVER_INFO info = {0};
 			int i;
 
+			dbg_msg("temp", "got server info");
+
 			unpacker_reset(&up, (unsigned char*)packet->data+sizeof(SERVERBROWSE_INFO), packet->data_size-sizeof(SERVERBROWSE_INFO));
 
 			strncpy(info.version, unpacker_get_string(&up), 32);