mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Change formatting
This commit is contained in:
parent
f0d3a61b58
commit
9a71350c4d
|
|
@ -212,9 +212,7 @@ LevelChunk *MultiPlayerChunkCache::create(int x, int z)
|
||||||
// If we're sharing with the server, we'll need to calculate our heightmap now, which isn't shared. If we aren't sharing with the server,
|
// If we're sharing with the server, we'll need to calculate our heightmap now, which isn't shared. If we aren't sharing with the server,
|
||||||
// then this will be calculated when the chunk data arrives.
|
// then this will be calculated when the chunk data arrives.
|
||||||
if( g_NetworkManager.IsHost() )
|
if( g_NetworkManager.IsHost() )
|
||||||
{
|
|
||||||
chunk->recalcHeightmapOnly();
|
chunk->recalcHeightmapOnly();
|
||||||
}
|
|
||||||
|
|
||||||
// Successfully updated the cache
|
// Successfully updated the cache
|
||||||
EnterCriticalSection(&m_csLoadCreate);
|
EnterCriticalSection(&m_csLoadCreate);
|
||||||
|
|
@ -309,4 +307,4 @@ void MultiPlayerChunkCache::dataReceived(int x, int z)
|
||||||
if( ( iz < 0 ) || ( iz >= XZSIZE ) ) return;
|
if( ( iz < 0 ) || ( iz >= XZSIZE ) ) return;
|
||||||
int idx = ix * XZSIZE + iz;
|
int idx = ix * XZSIZE + iz;
|
||||||
hasData[idx] = true;
|
hasData[idx] = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue