소스 검색

Just to be sure.

Godzil 4 년 전
부모
커밋
de315d06f9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
     }