Bugfix
This commit is contained in:
parent
ef8468f261
commit
9b60b72df9
1 changed files with 4 additions and 4 deletions
|
@ -809,8 +809,8 @@ var switchDatabase = func {
|
||||||
}
|
}
|
||||||
|
|
||||||
setlistener("gear/gear[1]/wow", func() {
|
setlistener("gear/gear[1]/wow", func() {
|
||||||
if (timer30secLandingstart.isRunning) {
|
if (timer30secLanding.isRunning) {
|
||||||
timer30secLandingstart.stop();
|
timer30secLanding.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getprop("gear/gear[1]/wow") == 1 and getprop("FMGC/internal/landing-time") == -99) {
|
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);
|
}, 0, 0);
|
||||||
|
|
||||||
var timer30secLandingstart = maketimer(1, func() {
|
var timer30secLanding = maketimer(1, func() {
|
||||||
if (pts.Sim.Time.elapsedSec.getValue() > getprop("FMGC/internal/landing-time") + 30) {
|
if (pts.Sim.Time.elapsedSec.getValue() > getprop("FMGC/internal/landing-time") + 30) {
|
||||||
setprop("FMGC/status/phase", 7);
|
setprop("FMGC/status/phase", 7);
|
||||||
setprop("FMGC/internal/landing-time", -99);
|
setprop("FMGC/internal/landing-time", -99);
|
||||||
timer30secLandingstart.stop();
|
timer30secLanding.stop();
|
||||||
}
|
}
|
||||||
});
|
});
|
Loading…
Add table
Reference in a new issue