summaryrefslogtreecommitdiff
path: root/server/bot/src/algos/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/bot/src/algos/test.rs')
-rw-r--r--server/bot/src/algos/test.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/bot/src/algos/test.rs b/server/bot/src/algos/test.rs
index 17999f5e..d17b079d 100644
--- a/server/bot/src/algos/test.rs
+++ b/server/bot/src/algos/test.rs
@@ -1,5 +1,5 @@
use crate::{
- pathfinding::{find_path, Path},
+ pathfinding::{find_path_to_neighbour, Path},
BotAlgo, BotInput,
};
use hurrycurry_client_lib::Game;
@@ -28,7 +28,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(&game.walkable, pos.as_ivec2(), near) {
+ if let Some(path) = find_path_to_neighbour(&game.walkable, pos.as_ivec2(), near) {
self.path = Some(path);
}
}