forked from mirrors/kolyah35-minecraft-pe-0.6.1
FIX: compilation
This commit is contained in:
parent
de72a9a3b7
commit
3e48c7fabd
8 changed files with 33 additions and 23 deletions
|
|
@ -560,8 +560,8 @@ void ClientSideNetworkHandler::handle(const RakNet::RakNetGUID& source, ChunkDat
|
|||
int rx = packet->x << 4;
|
||||
int rz = packet->z << 4;
|
||||
|
||||
unsigned char readBlockBuffer[setSize];
|
||||
unsigned char readDataBuffer[setSize / 2];
|
||||
unsigned char* readBlockBuffer = new unsigned char[setSize];
|
||||
unsigned char* readDataBuffer = new unsigned char[setSize / 2];
|
||||
|
||||
for (int i = 0; i < LevelConstants::CHUNK_COLUMNS; i++)
|
||||
{
|
||||
|
|
@ -631,6 +631,9 @@ void ClientSideNetworkHandler::handle(const RakNet::RakNetGUID& source, ChunkDat
|
|||
}
|
||||
}
|
||||
|
||||
delete[] readBlockBuffer;
|
||||
delete[] readDataBuffer;
|
||||
|
||||
if (recalcHeight)
|
||||
{
|
||||
// chunk->recalcHeightmap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue