diff --git a/lib/launch_rocket.ks b/lib/launch_rocket.ks index 29e878f..d7ed9b0 100644 --- a/lib/launch_rocket.ks +++ b/lib/launch_rocket.ks @@ -130,12 +130,12 @@ function insertionBurn { // warp to the burn point print "Waiting for burn window.". - wait until (VAng(SHIP:FACING:FOREVECTOR, STEERINGMANAGER:TARGET:FOREVECTOR) <= 1) OR (TIME >= Ts). - if TIME > Ts - 2 { + wait until (VAng(SHIP:FACING:FOREVECTOR, STEERINGMANAGER:TARGET:FOREVECTOR) <= 1) OR (TIME > Ts). + if TIME < Ts - 2 { KUNIVERSE:TIMEWARP:WarpTo(Ts - 2). } wait until SHIP:UNPACKED. - wait until TIME >= Ts. + wait until TIME > Ts. // burn until periapsis is clear print "Circularizing orbit.".