Fix typo in FMGC.nas, MCDU - add plus character
This commit is contained in:
parent
92b21d7f15
commit
6fb8ad6f90
2 changed files with 8 additions and 5 deletions
|
@ -1193,8 +1193,7 @@ setlistener("/systems/navigation/adr/operating-3", func() {
|
|||
setlistener("/FMGC/internal/block-calculating", func() {
|
||||
if (timer3blockFuel.isRunning) {
|
||||
FMGCInternal.blockFuelTime = -99;
|
||||
timer3blockFuel.start();
|
||||
FMGCInternal.blockFuelTime = pts.Sim.Time.elapsedSec.getValue();
|
||||
timer3blockFuel.stop();
|
||||
}
|
||||
|
||||
if (FMGCInternal.blockFuelTime == -99) {
|
||||
|
@ -1207,8 +1206,7 @@ setlistener("/FMGC/internal/block-calculating", func() {
|
|||
setlistener("/FMGC/internal/fuel-calculating", func() {
|
||||
if (timer5fuelPred.isRunning) {
|
||||
FMGCInternal.fuelPredTime = -99;
|
||||
timer5fuelPred.start();
|
||||
FMGCInternal.fuelPredTime = pts.Sim.Time.elapsedSec.getValue();
|
||||
timer5fuelPred.stop();
|
||||
}
|
||||
|
||||
if (FMGCInternal.fuelPredTime == -99) {
|
||||
|
|
|
@ -1523,7 +1523,12 @@ var button = func(btn, i, event = "") {
|
|||
} else if (btn == "DOT") {
|
||||
mcdu_scratchpad.scratchpads[i].addChar(".");
|
||||
} else if (btn == "PLUSMINUS") {
|
||||
mcdu_scratchpad.scratchpads[i].addChar("-");
|
||||
if (right(mcdu_scratchpad.scratchpads[i].scratchpad, 1) == "-") {
|
||||
mcdu_scratchpad.scratchpads[i].clear();
|
||||
mcdu_scratchpad.scratchpads[i].addChar("+");
|
||||
} else {
|
||||
mcdu_scratchpad.scratchpads[i].addChar("-");
|
||||
}
|
||||
} else {
|
||||
mcdu_scratchpad.scratchpads[i].addChar(btn);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue