Skip to content

Commit

Permalink
Fix #710
Browse files Browse the repository at this point in the history
  • Loading branch information
KSP-TaxiService committed Dec 20, 2016
1 parent 2c21491 commit e059496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RemoteTech/FlightComputer/FlightCore.cs
Expand Up @@ -66,12 +66,12 @@ public static void HoldAttitude(FlightCtrlState fs, FlightComputer f, ReferenceF
break;

case ReferenceFrame.TargetParallel:
if (f.DelayedTarget != null && !(f.DelayedTarget is CelestialBody))
if (f.DelayedTarget != null) // either target vessel or celestial body
{
forward = f.DelayedTarget.GetTransform().position - v.CoM;
up = (v.mainBody.position - v.CoM);
}
else
else // no target to aim; default to orbital prograde
{
up = (v.mainBody.position - v.CoM);
forward = v.GetObtVelocity();
Expand Down

0 comments on commit e059496

Please sign in to comment.