more clean up

This commit is contained in:
Dante Ruiz 2016-11-30 18:28:50 +00:00
parent 104cbbff7e
commit 1b20cc8bd0

View file

@ -543,7 +543,7 @@ bool EntityTreeElement::findRayIntersection(const glm::vec3& origin, const glm::
float distanceToElementDetails = distance;
BoxFace localFace;
glm::vec3 localSurfaceNormal;
// if the ray doesn't intersect with our cube, we can stop searching!
if (!_cube.findRayIntersection(origin, direction, distanceToElementCube, localFace, localSurfaceNormal)) {
keepSearching = false; // no point in continuing to search