From 9e12238b9b7de13109b4be3eff1d47e77e853059 Mon Sep 17 00:00:00 2001 From: Jonathan Redpath Date: Wed, 5 Dec 2018 14:30:26 +0000 Subject: [PATCH] Bugfix: setlistener() on engine throttle called at framerate. Now only called if the value changes --- Nasal/fadec-common.nas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/fadec-common.nas b/Nasal/fadec-common.nas index a482ee99..c4b5403c 100644 --- a/Nasal/fadec-common.nas +++ b/Nasal/fadec-common.nas @@ -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 {