aboutsummaryrefslogtreecommitdiff
path: root/server/src/interaction.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/interaction.rs')
-rw-r--r--server/src/interaction.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/interaction.rs b/server/src/interaction.rs
index 3a950fba..7a8c2e9d 100644
--- a/server/src/interaction.rs
+++ b/server/src/interaction.rs
@@ -51,6 +51,7 @@ pub fn interact(
active.speed += speed;
} else {
active.speed -= speed;
+ active.speed = active.speed.max(0.); // in case of "release without press" when items cool on active tile
}
if active.position >= 1. {
let this_had_item = this.is_some();