On Sat, Feb 21, 2009 at 2:39 AM, Sébastien MARQUE <seb.mar...@free.fr> wrote: > > no problem. I've attached a nasal script to put in whatever aircraft you > want. In this script you'll find several listeners linked to several > properties that can be modified using instrument-failures.xml or > system-failures.xml. > > Then open the Equipment -> Instrument failures dialog and uncheck Airspeed > Indicator, then Apply, you will see in the terminal that all the listeners > have been triggered, which is not not correct.
Hi Sébastien, Thanks for the example, I could reproduce the problem. I have traced it to the FGNasalListener implementation, which doesn't do what I expected it to do :) The inline docs say: // If the fourth, optional argument is set to 0, then the // function is only called when the property node value actually changes. That seems pretty clear to me but apparently on the *first* write event the listener is triggered even if the value hasn't changed. We shall ask Melchior about it, I am sure he knows the logic behind it. -- Csaba/Jester ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel