Skip to content

Commit

Permalink
change nearest distance radius
Browse files Browse the repository at this point in the history
  • Loading branch information
iiiii7d authored Jan 11, 2025
1 parent 71be4f4 commit f38fd33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/waypoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ fn nearest_waypoints(waypoints: &[(SmolStr, Vec2, Vec<SmolStr>)], wp: Vec2) -> V
let mut radius = 0.0;
let mut nearest = vec![];
while nearest.len() < 3 {
radius += 1000.0;
radius += 2000.0;
nearest = waypoints
.iter()
.filter(|(_, w, _)| *w != wp)
Expand Down

0 comments on commit f38fd33

Please sign in to comment.