Procházet zdrojové kódy

REVIEWED: `CheckCollisionPointPoly()`

pull/2694/head
Ray před 3 roky
rodič
revize
853c66baed
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      src/rshapes.c

+ 1
- 1
src/rshapes.c Zobrazit soubor

@ -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];

Načítá se…
Zrušit
Uložit