From a868f49b41c30daca83de86f982ffed431d3e891 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 15 Aug 2024 20:26:15 +0200 Subject: customers leave if they get stuck walking --- server/bot/src/algos/test.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 dee4cb88..a47befa9 100644 --- a/server/bot/src/algos/test.rs +++ b/server/bot/src/algos/test.rs @@ -29,14 +29,14 @@ pub struct Test { } impl BotAlgo for Test { - fn tick(&mut self, me: PlayerID, game: &Game, _dt: f32) -> BotInput { + fn tick(&mut self, me: PlayerID, game: &Game, dt: f32) -> BotInput { let Some(player) = game.players.get(&me) else { return BotInput::default(); }; let pos = player.movement.position; if let Some(path) = &mut self.path { - let direction = path.next_direction(pos); + let direction = path.next_direction(pos, dt); return BotInput { direction, boost: false, -- cgit v1.2.3-70-g09d2