Skip to content

Commit

Permalink
Allow returning by 5 lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Feodor0090 committed Jun 1, 2023
1 parent 4803787 commit 286ccfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mahomaps/route/RouteTracker.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private void ProcessRegularSegment() {
*/
private boolean TryReattach() {
int found = -1;
for (int i = Math.max(currentVertex - 2, 0); i < vertex.length - 1; i++) {
for (int i = Math.max(currentVertex - 5, 0); i < vertex.length - 1; i++) {
double dist = GetDistanceToSegment(vertex[i], vertex[i + 1], extrapolatedGeolocation);
if (dist < REATTACH_DIST) {
found = i;
Expand Down

0 comments on commit 286ccfd

Please sign in to comment.