summaryrefslogtreecommitdiffstats
path: root/source/cChunk.h
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-26 03:39:43 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-26 03:39:43 +0100
commit537e1afcb1134a3b49fbc5483243e46b46b42f22 (patch)
tree4cdbb7c6d67673487fe0e03e20620e71233556b2 /source/cChunk.h
parent - Cleaned up PLI Packet and its creation/sending and fixed bug of player not being removed on scoreboard (forgot to send color in the removal packet) (diff)
downloadcuberite-537e1afcb1134a3b49fbc5483243e46b46b42f22.tar
cuberite-537e1afcb1134a3b49fbc5483243e46b46b42f22.tar.gz
cuberite-537e1afcb1134a3b49fbc5483243e46b46b42f22.tar.bz2
cuberite-537e1afcb1134a3b49fbc5483243e46b46b42f22.tar.lz
cuberite-537e1afcb1134a3b49fbc5483243e46b46b42f22.tar.xz
cuberite-537e1afcb1134a3b49fbc5483243e46b46b42f22.tar.zst
cuberite-537e1afcb1134a3b49fbc5483243e46b46b42f22.zip
Diffstat (limited to '')
-rw-r--r--source/cChunk.h22
1 files changed, 7 insertions, 15 deletions
diff --git a/source/cChunk.h b/source/cChunk.h
index b18a763b2..b794f4153 100644
--- a/source/cChunk.h
+++ b/source/cChunk.h
@@ -80,15 +80,14 @@ public:
void PositionToWorldPosition(int a_ChunkX, int a_ChunkY, int a_ChunkZ, int & a_X, int & a_Y, int & a_Z);
void AddTickBlockEntity( cFurnaceEntity* a_Entity );
- //{
- // m_TickBlockEntities.remove( a_Entity );
- // m_TickBlockEntities.push_back( a_Entity );
- //}
-
void RemoveTickBlockEntity( cFurnaceEntity* a_Entity );
- //{
- // m_TickBlockEntities.remove( a_Entity );
- //}
+
+ inline static unsigned int cChunk::MakeIndex(int x, int y, int z )
+ {
+ if( x < 16 && x > -1 && y < 128 && y > -1 && z < 16 && z > -1 )
+ return y + (z * 128) + (x * 128 * 16);
+ return 0;
+ }
static const int c_NumBlocks = 16*128*16;
static const int c_BlockDataSize = c_NumBlocks * 2 + (c_NumBlocks/2); // 2.5 * numblocks
@@ -111,13 +110,6 @@ private:
void CreateBlockEntities();
- inline unsigned int cChunk::MakeIndex(int x, int y, int z )
- {
- if( x < 16 && x > -1 && y < 128 && y > -1 && z < 16 && z > -1 )
- return y + (z * 128) + (x * 128 * 16);
- return 0;
- }
-
bool m_bCalculateLighting;
bool m_bCalculateHeightmap;