Skip to content

Commit

Permalink
Fix disabling coasts
Browse files Browse the repository at this point in the history
i was trying to make negative length fixed coasts map to zero and
wound up disabling fixed zero length coasts entirely

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
  • Loading branch information
lamont-granquist committed Jun 28, 2021
1 parent a2e5534 commit 72fab2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MechJeb2/MechJebModuleAscentPVG.cs
Expand Up @@ -163,7 +163,9 @@ private void SetTarget()
lanflag = true;
}

double coastLen = FixedCoast && FixedCoastLength > 0 ? FixedCoastLength : -1;
double coastLen = FixedCoast ? FixedCoastLength : -1;
if (FixedCoast && FixedCoastLength < 0)
coastLen = 0;

if (lanflag)
{
Expand Down

0 comments on commit 72fab2a

Please sign in to comment.