1
0
Fork 0
This commit is contained in:
legoboyvdlp R 2020-04-16 19:19:47 +01:00 committed by Jonathan Redpath
parent ef8468f261
commit 9b60b72df9

View file

@ -809,8 +809,8 @@ var switchDatabase = func {
}
setlistener("gear/gear[1]/wow", func() {
if (timer30secLandingstart.isRunning) {
timer30secLandingstart.stop();
if (timer30secLanding.isRunning) {
timer30secLanding.stop();
}
if (getprop("gear/gear[1]/wow") == 1 and getprop("FMGC/internal/landing-time") == -99) {
@ -819,10 +819,10 @@ setlistener("gear/gear[1]/wow", func() {
}
}, 0, 0);
var timer30secLandingstart = maketimer(1, func() {
var timer30secLanding = maketimer(1, func() {
if (pts.Sim.Time.elapsedSec.getValue() > getprop("FMGC/internal/landing-time") + 30) {
setprop("FMGC/status/phase", 7);
setprop("FMGC/internal/landing-time", -99);
timer30secLandingstart.stop();
timer30secLanding.stop();
}
});