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);
}, 5);
setlistener("/gear/launchbar/state", func {
var e = cmdarg().getValue();
if (e != launchbar and e == "Engaged")
setprop("/sim/messages/copilot", "Engaged!");
launchbar = e;
});
#setlistener("/gear/launchbar/state", func {
# var e = cmdarg().getValue();
# if (e != launchbar and e == "Engaged")
# setprop("/sim/messages/copilot", "Engaged!");
# launchbar = e;
#});
# map ATC messages to the screen log and to the voice subsystem
var map = func(type, msg, r, g, b) {