diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-10-20 00:56:32 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-10-20 00:56:32 +0200 |
| commit | f8d95d074c36ec35eee8def73b8d9f2b83c922cb (patch) | |
| tree | 0ab9faba2784a64eeb89688b292b831c50442a0e /server/bot/src/algos/test.rs | |
| parent | 8961db68d063a2dda427e80601650e4674772685 (diff) | |
| download | hurrycurry-f8d95d074c36ec35eee8def73b8d9f2b83c922cb.tar hurrycurry-f8d95d074c36ec35eee8def73b8d9f2b83c922cb.tar.bz2 hurrycurry-f8d95d074c36ec35eee8def73b8d9f2b83c922cb.tar.zst | |
Pathfinding avoids chairs
Diffstat (limited to 'server/bot/src/algos/test.rs')
| -rw-r--r-- | server/bot/src/algos/test.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |