@@ -823,7 +823,7 @@ void ClientSideNetworkHandler::handle(const RakNet::RakNetGUID& guid, ContainerS
823823
824824void ClientSideNetworkHandler::handle (const RakNet::RakNetGUID& guid, LevelDataPacket* packet)
825825{
826- if (!m_pLevel) return ;
826+ /* if (!m_pLevel) return;
827827
828828 const int uncompMagic = 12847812, compMagic = 58712758, chunkSepMagic = 284787658;
829829 RakNet::BitStream* bs = &packet->m_data, bs2;
@@ -840,7 +840,7 @@ void ClientSideNetworkHandler::handle(const RakNet::RakNetGUID& guid, LevelDataP
840840 if (magicNum == compMagic)
841841 {
842842 // Decompress it before we handle it.
843- int uncompSize = 0 , compSize = 0 ;
843+ uint32_t uncompSize = 0, compSize = 0;
844844 bs->Read(uncompSize);
845845 bs->Read(compSize);
846846
@@ -873,7 +873,7 @@ void ClientSideNetworkHandler::handle(const RakNet::RakNetGUID& guid, LevelDataP
873873 bs->Read(magicNum);
874874 }
875875
876- int chunksX = 0 , chunksZ = 0 ;
876+ uint32_t chunksX = 0, chunksZ = 0;
877877 bs->Read(chunksX);
878878 bs->Read(chunksZ);
879879
@@ -899,7 +899,7 @@ void ClientSideNetworkHandler::handle(const RakNet::RakNetGUID& guid, LevelDataP
899899 uint8_t ptype = 0;
900900
901901 // read the data size. This'll let us know how much to read.
902- int dataSize = 0 ;
902+ uint32_t dataSize = 0;
903903 bs->Read(dataSize);
904904
905905 LevelChunk* pChunk = m_pLevel->getChunk(cp);
@@ -932,7 +932,7 @@ void ClientSideNetworkHandler::handle(const RakNet::RakNetGUID& guid, LevelDataP
932932
933933 // All chunks are loaded. Also flush all the updates we've buffered.
934934 m_chunksRequested = C_MAX_CHUNKS;
935- flushAllBufferedUpdates ();
935+ flushAllBufferedUpdates();*/
936936}
937937
938938bool ClientSideNetworkHandler::areAllChunksLoaded ()
0 commit comments