diff options
Diffstat (limited to 'src/pathfinding.c')
| -rw-r--r-- | src/pathfinding.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pathfinding.c b/src/pathfinding.c index 939adbe..05acad7 100644 --- a/src/pathfinding.c +++ b/src/pathfinding.c @@ -10,6 +10,7 @@ bool can_walk_at(float x, float y) for (int i = 0; i < MAX_OBJECTS; i++) { object o = loaded_map.objects[i]; if (!o.active) continue; + if (!o.collision) 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; } return true; |
