aboutsummaryrefslogtreecommitdiff
path: root/server/bot/src/algos/simple.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-08-15 21:17:23 +0200
committermetamuffin <metamuffin@disroot.org>2024-08-15 21:17:23 +0200
commit1cb35341481cb76feb5bb794a304d1c4e3c7b372 (patch)
treedcd65f95aaa2805c14f83125ceb1bf11b6bf47be /server/bot/src/algos/simple.rs
parenta868f49b41c30daca83de86f982ffed431d3e891 (diff)
downloadhurrycurry-1cb35341481cb76feb5bb794a304d1c4e3c7b372.tar
hurrycurry-1cb35341481cb76feb5bb794a304d1c4e3c7b372.tar.bz2
hurrycurry-1cb35341481cb76feb5bb794a304d1c4e3c7b372.tar.zst
message timeout replaces persist
Diffstat (limited to 'server/bot/src/algos/simple.rs')
-rw-r--r--server/bot/src/algos/simple.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/bot/src/algos/simple.rs b/server/bot/src/algos/simple.rs
index 1be2cddc..27493d74 100644
--- a/server/bot/src/algos/simple.rs
+++ b/server/bot/src/algos/simple.rs
@@ -123,7 +123,7 @@ impl<S> Context<'_, S> {
.players
.iter()
.find_map(|(_, pl)| match &pl.communicate_persist {
- Some(Message::Item(item)) => {
+ Some((Message::Item(item), _)) => {
let pos = pl.movement.position.as_ivec2();
[IVec2::X, IVec2::Y, -IVec2::X, -IVec2::Y]
.into_iter()