1
0

That was not a good place to use ARRAYCOUNT()

git-svn-id: http://mc-server.googlecode.com/svn/trunk@372 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2012-03-06 14:54:31 +00:00
parent 8cdd63f06c
commit e463ddc500

View File

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