diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-04-30 19:18:50 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-04-30 19:18:50 +0200 |
| commit | 3767d1ce3e2b90d4eb667985c0997cb5293cc27e (patch) | |
| tree | a3a9671aefd322794518c55105ea0085e1d73d09 /src/pathfinding.c | |
| parent | 784b123af41337c57535b80c15fe13b62dfc1e66 (diff) | |
work
Diffstat (limited to 'src/pathfinding.c')
| -rw-r--r-- | src/pathfinding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathfinding.c b/src/pathfinding.c index 63741e7..70b084b 100644 --- a/src/pathfinding.c +++ b/src/pathfinding.c @@ -8,7 +8,7 @@ static float distance_between(vec2f v1, vec2f v2) bool can_walk_at(float x, float y) { for (int i = 0; i < MAX_OBJECTS; i++) { - object o = objects[i]; + object o = loaded_map.objects[i]; if (!o.active) continue; if (x >= o.position.x && x < o.position.x + o.size.x && y >= o.position.y && y < o.position.y + o.size.y) return false; } |
