summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-15 07:50:39 +0100
committermadmaxoft <github@xoft.cz>2014-03-15 07:50:39 +0100
commit0442c41c872badfcc1a7a22c293161cc752623b8 (patch)
treed0096cb432487c5edb6839a99266b6dc45ecb3a9 /src
parentIgnoring all config and SQLite files in the output folder. (diff)
downloadcuberite-0442c41c872badfcc1a7a22c293161cc752623b8.tar
cuberite-0442c41c872badfcc1a7a22c293161cc752623b8.tar.gz
cuberite-0442c41c872badfcc1a7a22c293161cc752623b8.tar.bz2
cuberite-0442c41c872badfcc1a7a22c293161cc752623b8.tar.lz
cuberite-0442c41c872badfcc1a7a22c293161cc752623b8.tar.xz
cuberite-0442c41c872badfcc1a7a22c293161cc752623b8.tar.zst
cuberite-0442c41c872badfcc1a7a22c293161cc752623b8.zip
Diffstat (limited to 'src')
-rw-r--r--src/Cuboid.cpp14
-rw-r--r--src/Cuboid.h1
2 files changed, 15 insertions, 0 deletions
diff --git a/src/Cuboid.cpp b/src/Cuboid.cpp
index 2400c64f3..3e5240248 100644
--- a/src/Cuboid.cpp
+++ b/src/Cuboid.cpp
@@ -38,6 +38,20 @@ void cCuboid::Assign(int a_X1, int a_Y1, int a_Z1, int a_X2, int a_Y2, int a_Z2)
+void cCuboid::Assign(const cCuboid & a_SrcCuboid)
+{
+ p1.x = a_SrcCuboid.p1.x;
+ p1.y = a_SrcCuboid.p1.y;
+ p1.z = a_SrcCuboid.p1.z;
+ p2.x = a_SrcCuboid.p2.x;
+ p2.y = a_SrcCuboid.p2.y;
+ p2.z = a_SrcCuboid.p2.z;
+}
+
+
+
+
+
void cCuboid::Sort(void)
{
if (p1.x > p2.x)
diff --git a/src/Cuboid.h b/src/Cuboid.h
index b90a09e05..3239c54fc 100644
--- a/src/Cuboid.h
+++ b/src/Cuboid.h
@@ -21,6 +21,7 @@ public:
cCuboid(int a_X1, int a_Y1, int a_Z1, int a_X2, int a_Y2, int a_Z2) : p1(a_X1, a_Y1, a_Z1), p2(a_X2, a_Y2, a_Z2) {}
void Assign(int a_X1, int a_Y1, int a_Z1, int a_X2, int a_Y2, int a_Z2);
+ void Assign(const cCuboid & a_SrcCuboid);
void Sort(void);