Skip to content

Commit

Permalink
Merge pull request #180 from 747-4EVER/master
Browse files Browse the repository at this point in the history
Fix THR RED alt bug
  • Loading branch information
747-4EVER authored Apr 20, 2021
2 parents df0d7d9 + 2778881 commit e4d6a05
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2139,6 +2139,11 @@ class FMCMainDisplay extends BaseAirliners {
SimVar.SetSimVarValue("L:AIRLINER_ACC_ALT", "Number", this.accelerationAltitude);
}
}
else {
let altitude = Simplane.getAltitude();
SimVar.SetSimVarValue("L:AIRLINER_THR_RED_ALT", "Number", altitude + 1500);
SimVar.SetSimVarValue("L:AIRLINER_ACC_ALT", "Number", altitude + 3000);
}
let destination = this.flightPlanManager.getDestination();
if (destination) {
if (destination.infos instanceof AirportInfo) {
Expand Down

0 comments on commit e4d6a05

Please sign in to comment.