diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-29 17:45:00 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-29 17:45:00 +0100 |
commit | d023589a192004ac20c18c40a73db1142364cde1 (patch) | |
tree | 478fdcf305ea0bcf129fedd4b00f5d23b195dfd7 /source/Cuboid.cpp | |
parent | BlockArea: Finished rotation and mirroring with meta. Implemented example meta handling for vines, stairs and torches. (diff) | |
download | cuberite-d023589a192004ac20c18c40a73db1142364cde1.tar cuberite-d023589a192004ac20c18c40a73db1142364cde1.tar.gz cuberite-d023589a192004ac20c18c40a73db1142364cde1.tar.bz2 cuberite-d023589a192004ac20c18c40a73db1142364cde1.tar.lz cuberite-d023589a192004ac20c18c40a73db1142364cde1.tar.xz cuberite-d023589a192004ac20c18c40a73db1142364cde1.tar.zst cuberite-d023589a192004ac20c18c40a73db1142364cde1.zip |
Diffstat (limited to 'source/Cuboid.cpp')
-rw-r--r-- | source/Cuboid.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/source/Cuboid.cpp b/source/Cuboid.cpp index 7b3b24528..e50ea1faf 100644 --- a/source/Cuboid.cpp +++ b/source/Cuboid.cpp @@ -9,9 +9,18 @@ void cCuboid::Sort() { - if( p1.x > p2.x ) std::swap( p1.x, p2.x ); - if( p1.y > p2.y ) std::swap( p1.y, p2.y ); - if( p1.z > p2.z ) std::swap( p1.z, p2.z ); + if (p1.x > p2.x) + { + std::swap(p1.x, p2.x); + } + if (p1.y > p2.y) + { + std::swap(p1.y, p2.y); + } + if (p1.z > p2.z) + { + std::swap(p1.z, p2.z); + } } |