refactor: Removed unnecessary if-statement

This commit is contained in:
LeandroSQ 2024-02-09 02:56:26 -03:00
parent b5901d86d2
commit 23fd3347bb

View File

@ -1523,8 +1523,7 @@ void DrawPolyPro(Vector2 center, Vector2 *points, int pointCount, Color color)
rlColor4ub(color.r, color.g, color.b, color.a);
for (int i = 0; i < pointCount; i++)
{
int j = i + 1;
if (j == pointCount) j = 0;
int j = (i + 1) % pointCount;
rlVertex2f(points[i].x, points[i].y);
rlVertex2f(center.x, center.y);