Skip to content

Commit 2c00b37

Browse files
committed
Fix #78: fix warp to next for maneuver nodes
1 parent 643f975 commit 2c00b37

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

RasterPropMonitor/Handlers/JSIInternalRPMButtons.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,8 +1398,7 @@ double GetNextWarpEventTime()
13981398

13991399
if (vessel.patchedConicSolver != null && vessel.patchedConicSolver.maneuverNodes.Count > 0)
14001400
{
1401-
double halfBurnDuration = GetBurnDuration((float)vessel.patchedConicSolver.maneuverNodes[0].DeltaV.magnitude * 0.5f);
1402-
targetUT = Planetarium.GetUniversalTime() + halfBurnDuration - GameSettings.WARP_TO_MANNODE_MARGIN;
1401+
targetUT = Planetarium.GetUniversalTime() + vessel.patchedConicSolver.maneuverNodes[0].startBurnIn - GameSettings.WARP_TO_MANNODE_MARGIN;
14031402
}
14041403
else if (vessel.orbit.nextPatch != null && vessel.orbit.nextPatch.activePatch)
14051404
{

0 commit comments

Comments
 (0)