fx: always true comparison

This commit is contained in:
djaidjai committed 2026-04-29 01:55:47 +02:00
1 parent 8f244fc6d8
commit e88422cb2f
1 file changed
+1 -1
+1 -1
View File
@@ -224,7 +224,7 @@ impl Camera {
} }
fn ray_colour(&self, hittables: &Vec<Arc<dyn Hittable>>, r: &Ray, depth: u32) -> Colour { fn ray_colour(&self, hittables: &Vec<Arc<dyn Hittable>>, r: &Ray, depth: u32) -> Colour {
if depth <= 0 { if depth == 0 {
return Colour::default(); return Colour::default();
} }
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.