summaryrefslogtreecommitdiffstats
path: root/source/cWorld.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-03 21:55:16 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-03 21:55:16 +0100
commitad89cf88ba997651257412594cdd88e84a525a19 (patch)
tree7706bc9b0b9ae25cbb4b2b097e3c27bed5ba2e30 /source/cWorld.cpp
parentThat should not have been committed... (diff)
downloadcuberite-ad89cf88ba997651257412594cdd88e84a525a19.tar
cuberite-ad89cf88ba997651257412594cdd88e84a525a19.tar.gz
cuberite-ad89cf88ba997651257412594cdd88e84a525a19.tar.bz2
cuberite-ad89cf88ba997651257412594cdd88e84a525a19.tar.lz
cuberite-ad89cf88ba997651257412594cdd88e84a525a19.tar.xz
cuberite-ad89cf88ba997651257412594cdd88e84a525a19.tar.zst
cuberite-ad89cf88ba997651257412594cdd88e84a525a19.zip
Diffstat (limited to '')
-rw-r--r--source/cWorld.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/cWorld.cpp b/source/cWorld.cpp
index 608477d71..2b0f4ab2b 100644
--- a/source/cWorld.cpp
+++ b/source/cWorld.cpp
@@ -188,7 +188,7 @@ cWorld::cWorld( const AString & a_WorldName )
MTRand r1;
m_SpawnX = (double)((r1.randInt()%1000)-500);
- m_SpawnY = 128;
+ m_SpawnY = cChunk::c_ChunkHeight;
m_SpawnZ = (double)((r1.randInt()%1000)-500);
m_WorldSeed = r1.randInt();
m_GameMode = 0;
@@ -259,11 +259,11 @@ cWorld::cWorld( const AString & a_WorldName )
m_SimulatorManager->RegisterSimulator(m_FireSimulator, 10);
m_SimulatorManager->RegisterSimulator(m_RedstoneSimulator, 1);
- memset( g_BlockLightValue, 0x0, 128 );
- memset( g_BlockSpreadLightFalloff, 0xf, 128 ); // 0xf means total falloff
- memset( g_BlockTransparent, 0x0, 128 );
- memset( g_BlockOneHitDig, 0x0, 128 );
- memset( g_BlockPistonBreakable, 0x0, 128 );
+ 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 ) );
// Emissive blocks
g_BlockLightValue[ E_BLOCK_TORCH ] = 14;