diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-05-04 21:25:54 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-05-04 21:25:54 +0200 |
commit | 213a96e6d6373dc2a015a165d5309c20d460665d (patch) | |
tree | fad1c56ad379ced744955ae50e69715c49c40231 /src/Chunk.h | |
parent | Fixed ProtoProxy compilation in MSVC2013. (diff) | |
parent | Fixed 027efe09ea3d3222c3cbf169643e57773c1614ae (diff) | |
download | cuberite-213a96e6d6373dc2a015a165d5309c20d460665d.tar cuberite-213a96e6d6373dc2a015a165d5309c20d460665d.tar.gz cuberite-213a96e6d6373dc2a015a165d5309c20d460665d.tar.bz2 cuberite-213a96e6d6373dc2a015a165d5309c20d460665d.tar.lz cuberite-213a96e6d6373dc2a015a165d5309c20d460665d.tar.xz cuberite-213a96e6d6373dc2a015a165d5309c20d460665d.tar.zst cuberite-213a96e6d6373dc2a015a165d5309c20d460665d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Chunk.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Chunk.h b/src/Chunk.h index a15d43e00..84ec35496 100644 --- a/src/Chunk.h +++ b/src/Chunk.h @@ -320,10 +320,10 @@ public: m_BlockTickZ = a_RelZ; } - inline NIBBLETYPE GetMeta(int a_RelX, int a_RelY, int a_RelZ) const {return cChunkDef::GetNibble(m_BlockMeta, a_RelX, a_RelY, a_RelZ); } - inline NIBBLETYPE GetMeta(int a_BlockIdx) const {return cChunkDef::GetNibble(m_BlockMeta, a_BlockIdx); } - inline void SetMeta(int a_RelX, int a_RelY, int a_RelZ, NIBBLETYPE a_Meta) { cChunkDef::SetNibble(m_BlockMeta, a_RelX, a_RelY, a_RelZ, a_Meta); } - inline void SetMeta(int a_BlockIdx, NIBBLETYPE a_Meta) { cChunkDef::SetNibble(m_BlockMeta, a_BlockIdx, a_Meta); } + inline NIBBLETYPE GetMeta(int a_RelX, int a_RelY, int a_RelZ) const { return cChunkDef::GetNibble(m_BlockMeta, a_RelX, a_RelY, a_RelZ); } + inline NIBBLETYPE GetMeta(int a_BlockIdx) const { return cChunkDef::GetNibble(m_BlockMeta, a_BlockIdx); } + inline void SetMeta(int a_RelX, int a_RelY, int a_RelZ, NIBBLETYPE a_Meta) { SetMeta(MakeIndex(a_RelX, a_RelY, a_RelZ), a_Meta); } + void SetMeta(int a_BlockIdx, NIBBLETYPE a_Meta); inline NIBBLETYPE GetBlockLight(int a_RelX, int a_RelY, int a_RelZ) const {return cChunkDef::GetNibble(m_BlockLight, a_RelX, a_RelY, a_RelZ); } inline NIBBLETYPE GetSkyLight (int a_RelX, int a_RelY, int a_RelZ) const {return cChunkDef::GetNibble(m_BlockSkyLight, a_RelX, a_RelY, a_RelZ, true); } @@ -420,7 +420,6 @@ private: cWorld * m_World; cChunkMap * m_ChunkMap; - // TODO: Make these pointers and don't allocate what isn't needed COMPRESSED_BLOCKTYPE m_BlockTypes; COMPRESSED_NIBBLETYPE m_BlockMeta; COMPRESSED_NIBBLETYPE m_BlockLight; |