Skip to content

Commit

Permalink
Fix for Navigation bug with Ansiblex gates
Browse files Browse the repository at this point in the history
  • Loading branch information
BitBaboonSteve committed Feb 20, 2020
1 parent 48610dc commit 1cc9001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EVEData/Navigation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,10 @@ public static List<RoutePoint> Navigate(string From, string To, bool UseJumpGate
RP.GateToTake = GateType.StarGate;
RP.LY = 0.0;

if (i > 0 )
if (i < Route.Count - 1)
{
MapNode mn = MapNodes[RP.SystemName];
if (mn.JBConnection != null && mn.JBConnection == Route[i - 1])
if (mn.JBConnection != null && mn.JBConnection == Route[i +1])
{
RP.GateToTake = GateType.Ansibex;
}
Expand Down

0 comments on commit 1cc9001

Please sign in to comment.