From de315d06f9205739796347722d8a18b41a224755 Mon Sep 17 00:00:00 2001 From: Godzil Date: Thu, 20 Feb 2020 17:47:26 +0000 Subject: [PATCH] Just to be sure. --- source/world.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/world.cpp b/source/world.cpp index 2f57e72..1198484 100644 --- a/source/world.cpp +++ b/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; }