diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-10-14 14:05:03 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-10-14 14:05:03 +0000 |
| commit | 051ed0c892676e8354e8709fe3121c1fcc880939 (patch) | |
| tree | 0466e365f67dac656c0f52e68103db51fe896443 /src/engine/client/ec_client.c | |
| parent | 93aeae97c49947c3fad10198d466a084dc45eb28 (diff) | |
| download | zcatch-051ed0c892676e8354e8709fe3121c1fcc880939.tar.gz zcatch-051ed0c892676e8354e8709fe3121c1fcc880939.zip | |
fixed the map downloader so it uses vital packets
Diffstat (limited to 'src/engine/client/ec_client.c')
| -rw-r--r-- | src/engine/client/ec_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/client/ec_client.c b/src/engine/client/ec_client.c index 9c798c30..cdcbf12a 100644 --- a/src/engine/client/ec_client.c +++ b/src/engine/client/ec_client.c @@ -892,7 +892,7 @@ static void client_process_packet(NETCHUNK *packet) mapdownload_totalsize = -1; mapdownload_amount = 0; - msg_pack_start_system(NETMSG_REQUEST_MAP_DATA, 0); + msg_pack_start_system(NETMSG_REQUEST_MAP_DATA, MSGFLAG_VITAL|MSGFLAG_FLUSH); msg_pack_int(mapdownload_chunk); msg_pack_end(); client_send_msg(); @@ -943,7 +943,7 @@ static void client_process_packet(NETCHUNK *packet) { /* request new chunk */ mapdownload_chunk++; - msg_pack_start_system(NETMSG_REQUEST_MAP_DATA, 0); + msg_pack_start_system(NETMSG_REQUEST_MAP_DATA, MSGFLAG_VITAL|MSGFLAG_FLUSH); msg_pack_int(mapdownload_chunk); msg_pack_end(); client_send_msg(); |