diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-23 00:32:36 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:31:29 +0200 |
commit | 04cc939e31ec57b83f811022d408bacfc40ca627 (patch) | |
tree | 3e09740c63e6af00fcf5a3ff5af5e1df2ac78160 /server | |
parent | 79a01e7c40e1516c832a9c8e5a193aeafe6f0b7d (diff) | |
download | hurrycurry-04cc939e31ec57b83f811022d408bacfc40ca627.tar hurrycurry-04cc939e31ec57b83f811022d408bacfc40ca627.tar.bz2 hurrycurry-04cc939e31ec57b83f811022d408bacfc40ca627.tar.zst |
customer: clear messsage on timeout
Diffstat (limited to 'server')
-rw-r--r-- | server/src/customer/mod.rs | 1 |
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(), |