File tree Expand file tree Collapse file tree
src/RemoteTech/FlightComputer/Commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,15 +52,8 @@ public override bool Pop(FlightComputer f)
5252 f . Vessel . patchedConicSolver . Update ( ) ;
5353 }
5454
55- // check if the stored node is still valid
56- if ( f . Vessel . patchedConicSolver . maneuverNodes . FindIndex ( x => x . UT == this . Node . UT && x . DeltaV == this . Node . DeltaV ) < 0 ) //IndexOf() is bad comparer
57- {
58- RTUtil . ScreenMessage ( "[Flight Computer]: No maneuver node found." ) ;
59- return false ;
60- }
61-
6255 if ( this . Node . solver == null ) // need to repair (due to the scenario of 2 vessels within phyical range)
63- this . Node = f . Vessel . patchedConicSolver . maneuverNodes . Find ( x => x . UT == this . Node . UT && x . DeltaV == this . Node . DeltaV ) ;
56+ this . Node = f . Vessel . patchedConicSolver . maneuverNodes . Find ( x => x . UT == this . Node . UT ) ;
6457
6558 var burn = f . ActiveCommands . FirstOrDefault ( c => c is BurnCommand ) ;
6659 if ( burn != null ) {
@@ -296,7 +289,7 @@ public override void Save(ConfigNode n, FlightComputer fc)
296289 }
297290
298291 // search the node on the List
299- this . NodeIndex = fc . Vessel . patchedConicSolver . maneuverNodes . FindIndex ( x => x . UT == this . Node . UT && x . DeltaV == this . Node . DeltaV ) ;
292+ this . NodeIndex = fc . Vessel . patchedConicSolver . maneuverNodes . FindIndex ( x => x . UT == this . Node . UT ) ;
300293
301294 // only save this command if we are on the maneuverNode list
302295 if ( this . NodeIndex >= 0 )
You can’t perform that action at this time.
0 commit comments