Skip to content

Commit 2b4367c

Browse files
committed
Use atmosphereDepth
1 parent db7e4af commit 2b4367c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TimeControl/TimeControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ private void onTimeWarpRateChanged()
206206
if (TimeWarp.CurrentRateIndex > 0)
207207
{
208208
operational = false;
209-
if (HighLogic.LoadedSceneIsFlight && FlightGlobals.ActiveVessel.altitude > FlightGlobals.currentMainBody.maxAtmosphereAltitude)
209+
if (HighLogic.LoadedSceneIsFlight && FlightGlobals.ActiveVessel.altitude > FlightGlobals.currentMainBody.atmosphereDepth )
210210
{
211211
setSpontanousDestructionMechanic(false);
212212
}

0 commit comments

Comments
 (0)