aboutsummaryrefslogtreecommitdiff
path: root/server/src/customer/mod.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-23 00:32:36 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-23 19:31:29 +0200
commit04cc939e31ec57b83f811022d408bacfc40ca627 (patch)
tree3e09740c63e6af00fcf5a3ff5af5e1df2ac78160 /server/src/customer/mod.rs
parent79a01e7c40e1516c832a9c8e5a193aeafe6f0b7d (diff)
downloadhurrycurry-04cc939e31ec57b83f811022d408bacfc40ca627.tar
hurrycurry-04cc939e31ec57b83f811022d408bacfc40ca627.tar.bz2
hurrycurry-04cc939e31ec57b83f811022d408bacfc40ca627.tar.zst
customer: clear messsage on timeout
Diffstat (limited to 'server/src/customer/mod.rs')
-rw-r--r--server/src/customer/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/customer/mod.rs b/server/src/customer/mod.rs
index c7a1c5b9..fd7dcc5c 100644
--- a/server/src/customer/mod.rs
+++ b/server/src/customer/mod.rs
@@ -198,6 +198,7 @@ impl CustomerManager {
debug!("{id:?} waiting");
*timeout -= dt;
if *timeout <= 0. {
+ packets_out.push((id, PacketS::Communicate { message: None }));
let path = find_path(
&self.walkable,
p.movement.position.as_ivec2(),