summaryrefslogtreecommitdiffhomepage
path: root/src/shapes.c
diff options
context:
space:
mode:
authorRay <[email protected]>2021-06-22 20:14:44 +0200
committerRay <[email protected]>2021-06-22 20:14:44 +0200
commit7f2a071c5168daf0bf8c7ebbf73d75ba1833bb38 (patch)
tree8c7f14f5a839807b6a88b3612f7d3f0af2251a7c /src/shapes.c
parent2efb50cc63155af0e2ce8fbaf58aecc77b1b9485 (diff)
downloadraylib-7f2a071c5168daf0bf8c7ebbf73d75ba1833bb38.tar.gz
raylib-7f2a071c5168daf0bf8c7ebbf73d75ba1833bb38.zip
Formatting review
Diffstat (limited to 'src/shapes.c')
-rw-r--r--src/shapes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shapes.c b/src/shapes.c
index 788c3c83..98852bc8 100644
--- a/src/shapes.c
+++ b/src/shapes.c
@@ -1645,7 +1645,7 @@ bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshol
if (fabsf(dxl) >= fabsf(dyl)) collision = (dxl > 0)? ((p1.x <= point.x) && (point.x <= p2.x)) : ((p2.x <= point.x) && (point.x <= p1.x));
else collision = (dyl > 0)? ((p1.y <= point.y) && (point.y <= p2.y)) : ((p2.y <= point.y) && (point.y <= p1.y));
}
-
+
return collision;
}