Explorar el Código

Just to be sure.

Godzil hace 4 años
padre
commit
de315d06f9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      source/world.cpp

+ 1 - 1
source/world.cpp

@@ -127,7 +127,7 @@ bool World::isShadowed(Tuple point)
     Ray r = Ray(point, direction);
     Intersection h = this->intersect(r).hit();
 
-    if (!h.nothing() && h.t < distance)
+    if (!h.nothing() && (h.t < distance))
     {
         return true;
     }