From 2f493c24e3771bca9b9ee717cb3d7c18c406678f Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 11 May 2024 15:34:37 +0200 Subject: map work --- src/pathfinding.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pathfinding.c') 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; -- cgit v1.2.3-70-g09d2