diff options
Diffstat (limited to 'server/bot/src/algos/test.rs')
-rw-r--r-- | server/bot/src/algos/test.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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, |