Change formatting

This commit is contained in:
rtm516 2026-03-26 13:28:13 +00:00 committed by GitHub
parent f0d3a61b58
commit 9a71350c4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
} }