backward compatibility for /sim/auto-coordination
please see fg commit 5caa42af8ec6a8971aef37777640dbe449eda5cf
This commit is contained in:
parent
b02e471e69
commit
abce54aa2a
1 changed files with 10 additions and 0 deletions
|
@ -1180,6 +1180,16 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
|
|||
data.init();
|
||||
autotrim.init();
|
||||
|
||||
##### temporary hack to provide backward compatibility for /sim/auto-coordination
|
||||
##### remove this code when all references to /sim/auto-coordination are gone
|
||||
var ac = props.globals.getNode("/sim/auto-coordination");
|
||||
if(ac != nil ) {
|
||||
printlog("alert",
|
||||
"WARNING: using deprecated property /sim/auto-coordination. Please change to /controls/flight/auto-coordination" );
|
||||
ac.alias(props.globals.getNode("/controls/flight/auto-coordination", 1));
|
||||
}
|
||||
#### end of temporary hack for /sim/auto-coordination
|
||||
|
||||
if (getprop("/sim/startup/save-on-exit")) {
|
||||
data.load();
|
||||
var n = props.globals.getNode("/sim/aircraft-data");
|
||||
|
|
Loading…
Add table
Reference in a new issue