(svn r21392) -Change: prepare the network protocol for getting the file size later in the download process

This commit is contained in:
rubidium
2010-12-05 14:34:19 +00:00
parent c8e8b0e0a0
commit 97434f0e06
5 changed files with 25 additions and 11 deletions

View File

@@ -404,6 +404,9 @@ NetworkRecvStatus ServerNetworkGameSocketHandler::SendMap()
/* Now send the _frame_counter and how many packets are coming */
Packet *p = new Packet(PACKET_SERVER_MAP_BEGIN);
p->Send_uint32(_frame_counter);
this->SendPacket(p);
p = new Packet(PACKET_SERVER_MAP_SIZE);
p->Send_uint32(ftell(file_pointer));
this->SendPacket(p);