From a52785f4869a09e05417f97aff1c0d5b19587463 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 20 Oct 2025 20:11:02 +0200 Subject: Refactor bot input to packet based --- server/bot/src/pathfinding.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/bot/src/pathfinding.rs') diff --git a/server/bot/src/pathfinding.rs b/server/bot/src/pathfinding.rs index e17ca80c..ec098495 100644 --- a/server/bot/src/pathfinding.rs +++ b/server/bot/src/pathfinding.rs @@ -31,6 +31,10 @@ pub struct Path { } impl Path { + pub const EMPTY: Path = Path { + seg_time: 0., + segments: Vec::new(), + }; pub fn next_direction(&mut self, position: Vec2, dt: f32) -> Vec2 { if let Some(next) = self.segments.last().copied() { trace!("next {next}"); -- cgit v1.3