Bugfix: setlistener() on engine throttle called at framerate. Now only called if the value changes

This commit is contained in:
Jonathan Redpath 2018-12-05 14:30:26 +00:00
parent 58b3ef4257
commit 9e12238b9b

View file

@ -119,7 +119,7 @@ setlistener("/controls/engines/engine[0]/throttle-pos", func {
}
setprop("/controls/engines/engine[0]/throttle-fdm", 0.99);
}
});
}, 0, 0);
setlistener("/controls/engines/engine[1]/throttle-pos", func {
engstate1 = getprop("/engines/engine[0]/state");
@ -180,7 +180,7 @@ setlistener("/controls/engines/engine[1]/throttle-pos", func {
}
setprop("/controls/engines/engine[1]/throttle-fdm", 0.99);
}
});
}, 0, 0);
# Alpha Floor and Toga Lock
setlistener("/it-autoflight/input/athr", func {