diff options
Diffstat (limited to 'server/bot/src/pathfinding.rs')
-rw-r--r-- | server/bot/src/pathfinding.rs | 2 |
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 } |