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-11 21:02:36 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-11-11 21:02:36 +0000
commit7efefe27163548b7f61c516d6b650258a3c7d033 (patch)
tree3615438a87ead4a9552db85b871b82ac5972b53e /src/engine/client/client.c
parent5702b3bfd0e20a0f99c8fecdada033e8d8802f01 (diff)
downloadzcatch-7efefe27163548b7f61c516d6b650258a3c7d033.tar.gz
zcatch-7efefe27163548b7f61c516d6b650258a3c7d033.zip
many smaller changes. changed how projectiles are handled. fixed joining bug
Diffstat (limited to 'src/engine/client/client.c')
-rw-r--r--src/engine/client/client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/engine/client/client.c b/src/engine/client/client.c
index 43f3fb3d..19ddf9e4 100644
--- a/src/engine/client/client.c
+++ b/src/engine/client/client.c
@@ -555,8 +555,6 @@ 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);
@@ -567,6 +565,9 @@ static void client_process_packet(NETPACKET *packet)
 			info.progression = atol(unpacker_get_string(&up));
 			info.num_players = atol(unpacker_get_string(&up));
 			info.max_players = atol(unpacker_get_string(&up));
+			sprintf(info.address, "%d.%d.%d.%d:%d",
+				packet->address.ip[0], packet->address.ip[1], packet->address.ip[2],
+				packet->address.ip[3], packet->address.port);
 			
 			for(i = 0; i < info.num_players; i++)
 			{