1
0
Fork 0

commenting the "Engaged" message out ... YASim.cxx sets the launchbar

state string in *every* frame, so we shouldn't "listen" to it.  :-(
This commit is contained in:
mfranz 2007-10-10 10:59:41 +00:00
parent 520fff1c1e
commit 6149c6bbda

View file

@ -257,12 +257,12 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
}, 1); }, 1);
}, 5); }, 5);
setlistener("/gear/launchbar/state", func { #setlistener("/gear/launchbar/state", func {
var e = cmdarg().getValue(); # var e = cmdarg().getValue();
if (e != launchbar and e == "Engaged") # if (e != launchbar and e == "Engaged")
setprop("/sim/messages/copilot", "Engaged!"); # setprop("/sim/messages/copilot", "Engaged!");
launchbar = e; # launchbar = e;
}); #});
# map ATC messages to the screen log and to the voice subsystem # map ATC messages to the screen log and to the voice subsystem
var map = func(type, msg, r, g, b) { var map = func(type, msg, r, g, b) {