Skip to content

Commit

Permalink
Fix THR RED alt bug
Browse files Browse the repository at this point in the history
Fixed Bug caused by THR RED and ACC ALT having zero value when no flightplan present.
  • Loading branch information
747-4EVER committed Apr 20, 2021
1 parent f074a21 commit 2778881
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 2778881

Please sign in to comment.