diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-06 14:25:14 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-06 14:25:14 +0100 |
commit | ea1ecd36db72910ce4198ea1ddb073481470cae6 (patch) | |
tree | 9413d7377a732b553fde583affd9ea77524b6f4f /source | |
parent | Fixed a potential deadlock ( http://forum.mc-server.org/showthread.php?tid=374 ) (diff) | |
download | cuberite-ea1ecd36db72910ce4198ea1ddb073481470cae6.tar cuberite-ea1ecd36db72910ce4198ea1ddb073481470cae6.tar.gz cuberite-ea1ecd36db72910ce4198ea1ddb073481470cae6.tar.bz2 cuberite-ea1ecd36db72910ce4198ea1ddb073481470cae6.tar.lz cuberite-ea1ecd36db72910ce4198ea1ddb073481470cae6.tar.xz cuberite-ea1ecd36db72910ce4198ea1ddb073481470cae6.tar.zst cuberite-ea1ecd36db72910ce4198ea1ddb073481470cae6.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 daf34d8f1..d74f6ea93 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, ARRAYSIZE( g_BlockLightValue ) );
- memset( g_BlockSpreadLightFalloff, 0xf, ARRAYSIZE( g_BlockSpreadLightFalloff ) ); // 0xf means total falloff
- memset( g_BlockTransparent, 0x0, ARRAYSIZE( g_BlockTransparent ) );
- memset( g_BlockOneHitDig, 0x0, ARRAYSIZE( g_BlockOneHitDig ) );
- memset( g_BlockPistonBreakable, 0x0, ARRAYSIZE( g_BlockPistonBreakable ) );
+ 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 ) );
// Emissive blocks
g_BlockLightValue[ E_BLOCK_TORCH ] = 14;
|