summaryrefslogtreecommitdiffstats
path: root/source/World.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-26 10:47:30 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-26 10:47:30 +0200
commit403ef6bcdce65a1fd44bd00a0b1c83cee84b7076 (patch)
tree0ec0d77ad89ccd59d0f30b677c5cbd101824a67d /source/World.cpp
parentFixed up a few valgrind warnings (diff)
downloadcuberite-403ef6bcdce65a1fd44bd00a0b1c83cee84b7076.tar
cuberite-403ef6bcdce65a1fd44bd00a0b1c83cee84b7076.tar.gz
cuberite-403ef6bcdce65a1fd44bd00a0b1c83cee84b7076.tar.bz2
cuberite-403ef6bcdce65a1fd44bd00a0b1c83cee84b7076.tar.lz
cuberite-403ef6bcdce65a1fd44bd00a0b1c83cee84b7076.tar.xz
cuberite-403ef6bcdce65a1fd44bd00a0b1c83cee84b7076.tar.zst
cuberite-403ef6bcdce65a1fd44bd00a0b1c83cee84b7076.zip
Diffstat (limited to 'source/World.cpp')
-rw-r--r--source/World.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/World.cpp b/source/World.cpp
index 7d095971d..d785d1224 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -1136,18 +1136,18 @@ NIBBLETYPE cWorld::GetBlockBlockLight(int a_BlockX, int a_BlockY, int a_BlockZ)
-void cWorld::GetBlockTypeMeta(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta)
+bool cWorld::GetBlockTypeMeta(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta)
{
- m_ChunkMap->GetBlockTypeMeta(a_BlockX, a_BlockY, a_BlockZ, (BLOCKTYPE &)a_BlockType, (NIBBLETYPE &)a_BlockMeta);
+ return m_ChunkMap->GetBlockTypeMeta(a_BlockX, a_BlockY, a_BlockZ, (BLOCKTYPE &)a_BlockType, (NIBBLETYPE &)a_BlockMeta);
}
-void cWorld::GetBlockInfo(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_Meta, NIBBLETYPE & a_SkyLight, NIBBLETYPE & a_BlockLight)
+bool cWorld::GetBlockInfo(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_Meta, NIBBLETYPE & a_SkyLight, NIBBLETYPE & a_BlockLight)
{
- m_ChunkMap->GetBlockInfo(a_BlockX, a_BlockY, a_BlockZ, a_BlockType, a_Meta, a_SkyLight, a_BlockLight);
+ return m_ChunkMap->GetBlockInfo(a_BlockX, a_BlockY, a_BlockZ, a_BlockType, a_Meta, a_SkyLight, a_BlockLight);
}