Skip to content

Commit

Permalink
WPOverlay: Only retrace first jump
Browse files Browse the repository at this point in the history
Only adds the first repeat of waypoints to the list of the route
  • Loading branch information
LachlanConn authored and robertlong13 committed Feb 5, 2025
1 parent 82f2662 commit 8cb7bc4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ExtLibs/Maps/WPOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,11 @@ public void CreateOverlay(PointLatLngAlt home, List<Locationwp> missionitems, do
pointlist.Add(null);

int wpno = (int) Math.Max(item.p1, 0);
int repeat = (int)item.p2;
//Setting this to Max of 1 jump breaks the progress tracker
//If you wanted to keep the progress tracker but maintain performance another list needs to be created
//One list will contain the total route including all jumps and the second route would contain single jumps
//Then use the single jump list when using the RegenerateWPRoute function
int repeat = Math.Max((int)item.p2,1);
// Do jumps into the future are not able to be handled correctly with this new implementation of
// the route array and how the route is now only one continous list of points to draw.
// Therefore unfortunately we have to ignore them.
Expand Down

0 comments on commit 8cb7bc4

Please sign in to comment.