cChunk: removed unused code
git-svn-id: http://mc-server.googlecode.com/svn/trunk@323 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
4455a1643d
commit
8f85b9c625
@ -69,7 +69,6 @@ sSetBlock::sSetBlock( int a_X, int a_Y, int a_Z, char a_BlockType, char a_BlockM
|
|||||||
|
|
||||||
cChunk::cChunk(int a_X, int a_Y, int a_Z, cChunkMap * a_ChunkMap, cWorld * a_World)
|
cChunk::cChunk(int a_X, int a_Y, int a_Z, cChunkMap * a_ChunkMap, cWorld * a_World)
|
||||||
: m_bCalculateLighting( false )
|
: m_bCalculateLighting( false )
|
||||||
, m_bCalculateHeightmap( false )
|
|
||||||
, m_PosX( a_X )
|
, m_PosX( a_X )
|
||||||
, m_PosY( a_Y )
|
, m_PosY( a_Y )
|
||||||
, m_PosZ( a_Z )
|
, m_PosZ( a_Z )
|
||||||
@ -310,10 +309,6 @@ void cChunk::Tick(float a_Dt, MTRand & a_TickRandom)
|
|||||||
{
|
{
|
||||||
CalculateLighting();
|
CalculateLighting();
|
||||||
}
|
}
|
||||||
if (m_bCalculateHeightmap)
|
|
||||||
{
|
|
||||||
CalculateHeightmap();
|
|
||||||
}
|
|
||||||
|
|
||||||
cCSLock Lock(m_CSBlockLists);
|
cCSLock Lock(m_CSBlockLists);
|
||||||
unsigned int PendingSendBlocks = m_PendingSendBlocks.size();
|
unsigned int PendingSendBlocks = m_PendingSendBlocks.size();
|
||||||
@ -611,7 +606,6 @@ void cChunk::CreateBlockEntities(void)
|
|||||||
|
|
||||||
void cChunk::CalculateHeightmap()
|
void cChunk::CalculateHeightmap()
|
||||||
{
|
{
|
||||||
m_bCalculateHeightmap = false;
|
|
||||||
for (int x = 0; x < 16; x++)
|
for (int x = 0; x < 16; x++)
|
||||||
{
|
{
|
||||||
for (int z = 0; z < 16; z++)
|
for (int z = 0; z < 16; z++)
|
||||||
|
@ -178,7 +178,6 @@ public:
|
|||||||
void UseBlockEntity(cPlayer * a_Player, int a_X, int a_Y, int a_Z); // [x, y, z] in world block coords
|
void UseBlockEntity(cPlayer * a_Player, int a_X, int a_Y, int a_Z); // [x, y, z] in world block coords
|
||||||
|
|
||||||
inline void RecalculateLighting() { m_bCalculateLighting = true; } // Recalculate lighting next tick
|
inline void RecalculateLighting() { m_bCalculateLighting = true; } // Recalculate lighting next tick
|
||||||
inline void RecalculateHeightmap() { m_bCalculateHeightmap = true; } // Recalculate heightmap next tick
|
|
||||||
void SpreadLight(char* a_LightBuffer);
|
void SpreadLight(char* a_LightBuffer);
|
||||||
void CalculateLighting(); // Recalculate right now
|
void CalculateLighting(); // Recalculate right now
|
||||||
void CalculateHeightmap();
|
void CalculateHeightmap();
|
||||||
@ -250,7 +249,6 @@ private:
|
|||||||
cBlockEntityList m_BlockEntities;
|
cBlockEntityList m_BlockEntities;
|
||||||
|
|
||||||
bool m_bCalculateLighting;
|
bool m_bCalculateLighting;
|
||||||
bool m_bCalculateHeightmap;
|
|
||||||
|
|
||||||
int m_PosX, m_PosY, m_PosZ;
|
int m_PosX, m_PosY, m_PosZ;
|
||||||
cWorld * m_World;
|
cWorld * m_World;
|
||||||
|
Loading…
Reference in New Issue
Block a user