diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-06 15:54:31 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-06 15:54:31 +0100 |
commit | e463ddc5003ee0c17d780530b841e04351d4eb36 (patch) | |
tree | 65f166132be14e616ac45daa754484783f27b1fb /source/cWorld.cpp | |
parent | Fixed rev368's ChunkSender, now sends properly even chunks that are loaded. Fixed a deadlock in cClientHandle vs TickThread over cClientHandle::m_CSChunkLists (diff) | |
download | cuberite-e463ddc5003ee0c17d780530b841e04351d4eb36.tar cuberite-e463ddc5003ee0c17d780530b841e04351d4eb36.tar.gz cuberite-e463ddc5003ee0c17d780530b841e04351d4eb36.tar.bz2 cuberite-e463ddc5003ee0c17d780530b841e04351d4eb36.tar.lz cuberite-e463ddc5003ee0c17d780530b841e04351d4eb36.tar.xz cuberite-e463ddc5003ee0c17d780530b841e04351d4eb36.tar.zst cuberite-e463ddc5003ee0c17d780530b841e04351d4eb36.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cWorld.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/cWorld.cpp b/source/cWorld.cpp index c5cdca03a..33219ae95 100644 --- a/source/cWorld.cpp +++ b/source/cWorld.cpp @@ -261,11 +261,11 @@ cWorld::cWorld( const AString & a_WorldName ) m_SimulatorManager->RegisterSimulator(m_FireSimulator, 10);
m_SimulatorManager->RegisterSimulator(m_RedstoneSimulator, 1);
- memset( g_BlockLightValue, 0x0, ARRAYCOUNT( g_BlockLightValue ) );
- memset( g_BlockSpreadLightFalloff, 0xf, ARRAYCOUNT( g_BlockSpreadLightFalloff ) ); // 0xf means total falloff
- memset( g_BlockTransparent, 0x0, ARRAYCOUNT( g_BlockTransparent ) );
- memset( g_BlockOneHitDig, 0x0, ARRAYCOUNT( g_BlockOneHitDig ) );
- memset( g_BlockPistonBreakable, 0x0, ARRAYCOUNT( g_BlockPistonBreakable ) );
+ memset( g_BlockLightValue, 0x0, sizeof( g_BlockLightValue ) );
+ memset( g_BlockSpreadLightFalloff, 0xf, sizeof( g_BlockSpreadLightFalloff ) ); // 0xf means total falloff
+ memset( g_BlockTransparent, 0x0, sizeof( g_BlockTransparent ) );
+ memset( g_BlockOneHitDig, 0x0, sizeof( g_BlockOneHitDig ) );
+ memset( g_BlockPistonBreakable, 0x0, sizeof( g_BlockPistonBreakable ) );
// Emissive blocks
g_BlockLightValue[ E_BLOCK_TORCH ] = 14;
|