From f8d95d074c36ec35eee8def73b8d9f2b83c922cb Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 20 Oct 2025 00:56:32 +0200 Subject: Pathfinding avoids chairs --- server/bot/src/algos/test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/bot/src/algos/test.rs') diff --git a/server/bot/src/algos/test.rs b/server/bot/src/algos/test.rs index 20abbabd..387dd285 100644 --- a/server/bot/src/algos/test.rs +++ b/server/bot/src/algos/test.rs @@ -45,7 +45,7 @@ impl BotAlgo for Test { }; } else if let Some((item, near)) = find_demand(game) { info!("demand {item:?} near {near}"); - if let Some(path) = find_path_to_neighbour(&game.walkable, pos.as_ivec2(), near) { + if let Some(path) = find_path_to_neighbour(game, pos.as_ivec2(), near) { self.path = Some(path); } } -- cgit v1.3