aboutsummaryrefslogtreecommitdiff
path: root/server/bot/src/algos
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-10-20 20:58:14 +0200
committermetamuffin <metamuffin@disroot.org>2025-10-21 00:18:11 +0200
commiteaed442578c3b1765ec48c84489a122096b6a08f (patch)
treebd5eeb82ea6f49691a4c5bad91a1b1614f0948a8 /server/bot/src/algos
parenta3b0879a98bf5a0881b426913d7dd4cb9010e327 (diff)
downloadhurrycurry-eaed442578c3b1765ec48c84489a122096b6a08f.tar
hurrycurry-eaed442578c3b1765ec48c84489a122096b6a08f.tar.bz2
hurrycurry-eaed442578c3b1765ec48c84489a122096b6a08f.tar.zst
Send paths as debug events
Diffstat (limited to 'server/bot/src/algos')
-rw-r--r--server/bot/src/algos/customer.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/bot/src/algos/customer.rs b/server/bot/src/algos/customer.rs
index 6ae67f69..fa10410b 100644
--- a/server/bot/src/algos/customer.rs
+++ b/server/bot/src/algos/customer.rs
@@ -180,6 +180,8 @@ impl CustomerState {
*self = CustomerState::Exiting { path };
}
} else {
+ #[cfg(feature = "debug_events")]
+ out.push(PacketS::Debug(path.debug(me)));
out.push(PacketS::Movement {
player: me,
dir: path.next_direction(pos, dt) * 0.6,
@@ -380,6 +382,7 @@ impl CustomerState {
hand: Hand(0),
});
}
+
out.push(PacketS::Movement {
player: me,
dir: (table.as_vec2() + 0.5) - pos,
@@ -393,6 +396,8 @@ impl CustomerState {
debug!("{me:?} -> leave");
*self = CustomerState::Exited
} else {
+ #[cfg(feature = "debug_events")]
+ out.push(PacketS::Debug(path.debug(me)));
out.push(PacketS::Movement {
player: me,
dir: path.next_direction(pos, dt) * 0.6,