From f348313413bf8d4719bc25694222dda5d18ab484 Mon Sep 17 00:00:00 2001 From: Vincent Gee Date: Tue, 4 Nov 2014 06:18:24 -0500 Subject: [PATCH] Minor Improvement to depthSortList.cpp --- Engine/source/collision/depthSortList.cpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/Engine/source/collision/depthSortList.cpp b/Engine/source/collision/depthSortList.cpp index 510c38f2a..87a50fab5 100644 --- a/Engine/source/collision/depthSortList.cpp +++ b/Engine/source/collision/depthSortList.cpp @@ -181,25 +181,19 @@ void DepthSortList::set(const MatrixF & mat, Point3F & extents) mPlaneList.clear(); mPlaneList.increment(); - mPlaneList.last().set(-1.0f, 0.0f, 0.0f); - mPlaneList.last().d = -mExtent.x; + mPlaneList.last().set(-1.0f, 0.0f, 0.0f, -mExtent.x); mPlaneList.increment(); - mPlaneList.last().set( 1.0f, 0.0f, 0.0f); - mPlaneList.last().d = -mExtent.x; + mPlaneList.last().set( 1.0f, 0.0f, 0.0f, -mExtent.x); mPlaneList.increment(); - mPlaneList.last().set( 0.0f,-1.0f, 0.0f); - mPlaneList.last().d = 0; + mPlaneList.last().set( 0.0f,-1.0f, 0.0f, 0); mPlaneList.increment(); - mPlaneList.last().set( 0.0f, 1.0f, 0.0f); - mPlaneList.last().d = -2.0f * mExtent.y; + mPlaneList.last().set( 0.0f, 1.0f, 0.0f, -2.0f * mExtent.y); mPlaneList.increment(); - mPlaneList.last().set( 0.0f, 0.0f,-1.0f); - mPlaneList.last().d = -mExtent.z; + mPlaneList.last().set( 0.0f, 0.0f,-1.0f, -mExtent.z); mPlaneList.increment(); - mPlaneList.last().set( 0.0f, 0.0f, 1.0f); - mPlaneList.last().d = -mExtent.z; + mPlaneList.last().set( 0.0f, 0.0f, 1.0f, -mExtent.z); } //----------------------------------------------------------------------------