Remove extraneous getDrawonHUD call

This commit is contained in:
Ryan Huffman 2014-12-30 15:31:08 -08:00
parent 929200bc76
commit 3bfc298349

View file

@ -280,7 +280,7 @@ unsigned int Overlays::getOverlayAtPoint(const glm::vec2& point) {
unsigned int thisID = i.key();
if (i.value()->is3D()) {
Base3DOverlay* thisOverlay = static_cast<Base3DOverlay*>(i.value());
if (thisOverlay->getDrawOnHUD() && !thisOverlay->getIgnoreRayIntersection()) {
if (!thisOverlay->getIgnoreRayIntersection()) {
if (thisOverlay->findRayIntersection(origin, direction, distance, thisFace)) {
return thisID;
}