summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-03-30 03:25:03 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-03-30 03:25:03 (EDT)
commit508f37faa701c8ad0cf8d9271bd489ba9978e765 (patch)
treefbe060a5d4a03da34e844f0607ba935e968ad0a5 /src
parent2b5fd6f394ee99fcd33384467cfe427bd737bd2d (diff)
downloaddodge-balls-508f37faa701c8ad0cf8d9271bd489ba9978e765.zip
dodge-balls-508f37faa701c8ad0cf8d9271bd489ba9978e765.tar.gz
dodge-balls-508f37faa701c8ad0cf8d9271bd489ba9978e765.tar.bz2
collision: Drop "="
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));
}