Option to enable/disable debug drawing

This commit is contained in:
2023-11-18 11:19:54 +01:00
parent 03b5959eae
commit 4d9851f433
3 changed files with 34 additions and 5 deletions

View File

@@ -173,9 +173,9 @@ void renderDebugPath(ecs_iter_t *it) {
while (pathData) {
for (i32 iPath = 0; iPath < pathData->numWaypoints; iPath++) {
Color color = RED;
if (first && iPath < path[i].curWaypoint - 1)
if (first && iPath < path[i].curWaypoint)
color = GREEN;
else if (first && iPath == path[i].curWaypoint - 1)
else if (first && iPath == path[i].curWaypoint)
color = ORANGE;
color.a = 180;