diff options
author | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-01 23:27:09 +0100 |
---|---|---|
committer | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-01 23:27:09 +0100 |
commit | bf2806dcb8ee8012fa02c6782382a1edafa3cc14 (patch) | |
tree | b23e7e2ca87088d842435c20d1f4afcf4cb23a21 /source/cWorld.cpp | |
parent | Accidentally removed a line of code (diff) | |
download | cuberite-bf2806dcb8ee8012fa02c6782382a1edafa3cc14.tar cuberite-bf2806dcb8ee8012fa02c6782382a1edafa3cc14.tar.gz cuberite-bf2806dcb8ee8012fa02c6782382a1edafa3cc14.tar.bz2 cuberite-bf2806dcb8ee8012fa02c6782382a1edafa3cc14.tar.lz cuberite-bf2806dcb8ee8012fa02c6782382a1edafa3cc14.tar.xz cuberite-bf2806dcb8ee8012fa02c6782382a1edafa3cc14.tar.zst cuberite-bf2806dcb8ee8012fa02c6782382a1edafa3cc14.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cWorld.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source/cWorld.cpp b/source/cWorld.cpp index 3d85fc0fb..1a8425476 100644 --- a/source/cWorld.cpp +++ b/source/cWorld.cpp @@ -317,7 +317,6 @@ void cWorld::Tick(float a_Dt) RemoveEntity( *m_pState->m_RemoveEntityQueue.begin() );
}
-
if( m_bAnimals && ( m_Time - m_SpawnMonsterTime > m_SpawnMonsterRate ) ) // 10 seconds
{
m_SpawnMonsterTime = m_Time;
@@ -361,7 +360,6 @@ void cWorld::Tick(float a_Dt) else if (nightRand == 9)
Monster = new cSkeleton();
//end random percent to spawn for night
-
} else {
if (dayRand == 0) //random percent to spawn for day
Monster = new cChicken();
@@ -398,7 +396,6 @@ void cWorld::GrowTree( int a_X, int a_Y, int a_Z ) int trunk = rand() % (7 - 5 + 1) + 5;
for (int i = 0; i < trunk; i++)
{
-
if( GetBlock( a_X, a_Y + i, a_Z ) == E_BLOCK_AIR )
FastSetBlock( a_X, a_Y + i, a_Z, E_BLOCK_LOG, 0 );
}
@@ -414,7 +411,6 @@ void cWorld::GrowTree( int a_X, int a_Y, int a_Z ) for (int k = a_Z-radius; k <= a_Z + radius; k++) {
// small chance to be missing a block to add a little random
if (k != a_Z || i != a_X && (rand() % 100 + 1) > 20) {
-
if( GetBlock( i, a_Y + j, k ) == E_BLOCK_AIR )
FastSetBlock(i, a_Y+j, k, E_BLOCK_LEAVES, 0 );
}
@@ -426,7 +422,6 @@ void cWorld::GrowTree( int a_X, int a_Y, int a_Z ) }
if( GetBlock( a_X, a_Y+j, a_Z ) == E_BLOCK_AIR )
FastSetBlock( a_X, a_Y+j, a_Z, E_BLOCK_LOG, 0 );
-
}
}
|