Implement DDA raycasting, fix bug in path smoothing
This commit is contained in:
@@ -171,7 +171,7 @@ void renderDebugPath(ecs_iter_t *it) {
|
||||
Path *path = ecs_field(it, Path, 1);
|
||||
|
||||
for (i32 i = 0; i < it->count; i++) {
|
||||
PathData *pathData = path->paths;
|
||||
PathData *pathData = path[i].paths;
|
||||
bool first = true;
|
||||
while (pathData) {
|
||||
for (i32 iPath = 0; iPath < pathData->numWaypoints; iPath++) {
|
||||
|
||||
Reference in New Issue
Block a user