diff options
Diffstat (limited to 'server/bot/src/step.rs')
| -rw-r--r-- | server/bot/src/step.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/server/bot/src/step.rs b/server/bot/src/step.rs index 6031439f..75e5d427 100644 --- a/server/bot/src/step.rs +++ b/server/bot/src/step.rs @@ -144,17 +144,9 @@ impl StepState { .map(|p| p.movement.position) .unwrap_or_default(); - let dir = self.path.next_direction(position, dt); - #[cfg(feature = "debug_events")] out.push(PacketS::Debug(self.path.debug(self.me))); - - out.push(PacketS::Movement { - player: self.me, - dir, - boost: self.path.is_stuck(0.5), - pos: None, - }); + self.path.update(out, self.me, position, dt, 1., true); } } } |