summaryrefslogtreecommitdiff
path: root/server/bot/src/algos/simple.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-08-15 20:26:15 +0200
committermetamuffin <metamuffin@disroot.org>2024-08-15 20:26:15 +0200
commita868f49b41c30daca83de86f982ffed431d3e891 (patch)
tree8d3c0f1242874517404e232ecb7a91fd2195e3a6 /server/bot/src/algos/simple.rs
parent6323dbc7ce50a73875c4b473da5776b7cbf41cde (diff)
downloadhurrycurry-a868f49b41c30daca83de86f982ffed431d3e891.tar
hurrycurry-a868f49b41c30daca83de86f982ffed431d3e891.tar.bz2
hurrycurry-a868f49b41c30daca83de86f982ffed431d3e891.tar.zst
customers leave if they get stuck walking
Diffstat (limited to 'server/bot/src/algos/simple.rs')
-rw-r--r--server/bot/src/algos/simple.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/bot/src/algos/simple.rs b/server/bot/src/algos/simple.rs
index 6092e772..1be2cddc 100644
--- a/server/bot/src/algos/simple.rs
+++ b/server/bot/src/algos/simple.rs
@@ -54,7 +54,7 @@ impl BotAlgo for Simple {
}
if let Some((path, target, down)) = &mut self.path {
- let direction = path.next_direction(pos);
+ let direction = path.next_direction(pos, dt);
let arrived = path.is_done();
let target = *target;
if arrived {