aboutsummaryrefslogtreecommitdiff
path: root/src/reflections.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reflections.c')
-rw-r--r--src/reflections.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/reflections.c b/src/reflections.c
index a1f6a2c..3fa1b6d 100644
--- a/src/reflections.c
+++ b/src/reflections.c
@@ -254,7 +254,7 @@ Reflection *reflection_find_nearest(ReflectionContext *reflectionctx, double x,
reflection = reflectionctx->reflections;
while ( reflection ) {
- if ( (reflection->type == REFLECTION_NORMAL) && (!reflection->found) ) {
+ if ( reflection->type == REFLECTION_NORMAL ) {
double mod;
mod = modulus(x - reflection->x, y - reflection->y, z - reflection->z);
if ( mod < max ) {
@@ -265,10 +265,8 @@ Reflection *reflection_find_nearest(ReflectionContext *reflectionctx, double x,
reflection = reflection->next;
};
- if ( best ) best->found = 1;
return best;
-
}
Reflection *reflection_find_nearest_longer(ReflectionContext *reflectionctx, double x, double y, double z, double min_distance) {
@@ -290,7 +288,6 @@ Reflection *reflection_find_nearest_longer(ReflectionContext *reflectionctx, dou
reflection = reflection->next;
};
- if ( best ) best->found = 1;
return best;
}