mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 03:18:14 +00:00
REVIEWED: CheckCollisionPointPoly()
This commit is contained in:
@@ -1555,7 +1555,7 @@ bool CheckCollisionPointPoly(Vector2 point, Vector2 *points, int pointCount)
|
|||||||
|
|
||||||
if (pointCount > 2)
|
if (pointCount > 2)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < pointCount; i++)
|
for (int i = 0; i < pointCount - 1; i++)
|
||||||
{
|
{
|
||||||
Vector2 vc = points[i];
|
Vector2 vc = points[i];
|
||||||
Vector2 vn = points[i + 1];
|
Vector2 vn = points[i + 1];
|
||||||
|
Reference in New Issue
Block a user