WE now send the map on connect after that only player information.

This commit is contained in:
Jocke
2016-02-22 16:46:31 +01:00
parent ed9149fe63
commit b2d8cddfb7
6 changed files with 61 additions and 9 deletions
+1
View File
@@ -96,6 +96,7 @@ size_t TCPClient::readBuffer()
memcpy(&sizeOfPacket, m_ReadBuffer, sizeof(int));
// if the buffer is to small increase the size of it
// TODO if message is huge 1 time the buffer will not decrease.
if (sizeOfPacket > m_BufferSize) {
delete[] m_ReadBuffer;
m_ReadBuffer = new char[sizeOfPacket];