summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/collision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/collision.c b/src/collision.c
index 758f28c..f790d96 100644
--- a/src/collision.c
+++ b/src/collision.c
@@ -83,7 +83,7 @@ db_col_cir_line(double cir_x, double cir_y, double cir_r,
} else {
return -1;
}
- return (cir_r * cir_r) >=
+ return (cir_r * cir_r) >
((*col_x - cir_x) * (*col_x - cir_x) +
(*col_y - cir_y) * (*col_y - cir_y));
}