summaryrefslogtreecommitdiffstats
path: root/src/BoundingBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/BoundingBox.cpp')
-rw-r--r--src/BoundingBox.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/BoundingBox.cpp b/src/BoundingBox.cpp
index 48ed42789..1356e165c 100644
--- a/src/BoundingBox.cpp
+++ b/src/BoundingBox.cpp
@@ -285,11 +285,7 @@ bool cBoundingBox::Intersect(const cBoundingBox & a_Other, cBoundingBox & a_Inte
}
a_Intersection.m_Min.z = std::max(m_Min.z, a_Other.m_Min.z);
a_Intersection.m_Max.z = std::min(m_Max.z, a_Other.m_Max.z);
- if (a_Intersection.m_Min.z >= a_Intersection.m_Max.z)
- {
- return false;
- }
- return true;
+ return (a_Intersection.m_Min.z < a_Intersection.m_Max.z);
}