aboutsummaryrefslogtreecommitdiff
path: root/server/bot/src/pathfinding.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-08-12 12:59:36 +0200
committermetamuffin <metamuffin@disroot.org>2024-08-12 12:59:36 +0200
commitada25eeb227b201b1519ff46a888476a832256e6 (patch)
treecc7a73f75d8df86a4ada98661497b69e967d2b98 /server/bot/src/pathfinding.rs
parenta2cb371de54a9a1dfb4c469c90c1de3deb1e130d (diff)
downloadhurrycurry-ada25eeb227b201b1519ff46a888476a832256e6.tar
hurrycurry-ada25eeb227b201b1519ff46a888476a832256e6.tar.bz2
hurrycurry-ada25eeb227b201b1519ff46a888476a832256e6.tar.zst
bot: clear passive tile target
Diffstat (limited to 'server/bot/src/pathfinding.rs')
-rw-r--r--server/bot/src/pathfinding.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/bot/src/pathfinding.rs b/server/bot/src/pathfinding.rs
index ec557e28..e6457cff 100644
--- a/server/bot/src/pathfinding.rs
+++ b/server/bot/src/pathfinding.rs
@@ -32,7 +32,7 @@ impl Path {
if next.distance(position) < if self.0.len() == 1 { 0.1 } else { 0.6 } {
self.0.pop();
}
- (next - position).normalize_or_zero() * 0.5
+ (next - position).normalize_or_zero()
} else {
Vec2::ZERO
}