Option to enable/disable debug drawing
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user