summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-03-11 14:44:21 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2014-03-11 14:44:21 +0100
commit541175d8a08515568d75a8d6b57bc4841e273c4a (patch)
tree3a3e5351548188c6e87768b408cb53bec027c223 /src
parentThis allows a blockarea to have an Offset. (diff)
downloadcuberite-541175d8a08515568d75a8d6b57bc4841e273c4a.tar
cuberite-541175d8a08515568d75a8d6b57bc4841e273c4a.tar.gz
cuberite-541175d8a08515568d75a8d6b57bc4841e273c4a.tar.bz2
cuberite-541175d8a08515568d75a8d6b57bc4841e273c4a.tar.lz
cuberite-541175d8a08515568d75a8d6b57bc4841e273c4a.tar.xz
cuberite-541175d8a08515568d75a8d6b57bc4841e273c4a.tar.zst
cuberite-541175d8a08515568d75a8d6b57bc4841e273c4a.zip
Diffstat (limited to '')
-rw-r--r--src/BlockArea.cpp2
-rw-r--r--src/BlockArea.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/BlockArea.cpp b/src/BlockArea.cpp
index 986b2ee25..dfdf998df 100644
--- a/src/BlockArea.cpp
+++ b/src/BlockArea.cpp
@@ -264,7 +264,7 @@ void cBlockArea::SetOffset(int a_OffsetX, int a_OffsetY, int a_OffsetZ)
-void cBlockArea::SetOffset(Vector3i a_Offset)
+void cBlockArea::SetOffset(const Vector3i & a_Offset)
{
m_Offset.Set(a_Offset.x, a_Offset.y, a_Offset.z);
}
diff --git a/src/BlockArea.h b/src/BlockArea.h
index d89c9b372..75b8db3a6 100644
--- a/src/BlockArea.h
+++ b/src/BlockArea.h
@@ -210,7 +210,7 @@ public:
void SetRelBlockSkyLight(int a_RelX, int a_RelY, int a_RelZ, NIBBLETYPE a_BlockSkyLight);
void SetBlockSkyLight (int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYPE a_BlockSkyLight);
void SetOffset (int a_OffsetX, int a_OffsetY, int a_OffsetZ);
- void SetOffset (Vector3i a_Offset);
+ void SetOffset (const Vector3i & a_Offset);
// Getters:
BLOCKTYPE GetRelBlockType (int a_RelX, int a_RelY, int a_RelZ) const;
@@ -221,7 +221,7 @@ public:
NIBBLETYPE GetBlockLight (int a_BlockX, int a_BlockY, int a_BlockZ) const;
NIBBLETYPE GetRelBlockSkyLight(int a_RelX, int a_RelY, int a_RelZ) const;
NIBBLETYPE GetBlockSkyLight (int a_BlockX, int a_BlockY, int a_BlockZ) const;
- Vector3i GetOffset (void) const {return m_Offset;}
+ const Vector3i & GetOffset (void) const {return m_Offset;}
void SetBlockTypeMeta (int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta);
void SetRelBlockTypeMeta(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta);