From d023589a192004ac20c18c40a73db1142364cde1 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 29 Mar 2013 16:45:00 +0000 Subject: Cuboid: Added the DifX/Y/Z functions git-svn-id: http://mc-server.googlecode.com/svn/trunk@1320 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Cuboid.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'source/Cuboid.cpp') 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); + } } -- cgit v1.2.3