/environment/contrail was always true for the first 30 seconds. Fixes #2077
Fix is to simply call the update method during the init listener.
This commit is contained in:
parent
3c867578dc
commit
11ed499d61
1 changed files with 1 additions and 0 deletions
|
@ -35,5 +35,6 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
|
||||||
var static_contrail_node = props.globals.getNode("sim/ai/aircraft/contrail", 1);
|
var static_contrail_node = props.globals.getNode("sim/ai/aircraft/contrail", 1);
|
||||||
var time_node = props.globals.getNode("sim/time/elapsed-sec", 1);
|
var time_node = props.globals.getNode("sim/time/elapsed-sec", 1);
|
||||||
|
|
||||||
|
updateContrail(); # avoid 30 second delay on startup https://sourceforge.net/p/flightgear/codetickets/2077/
|
||||||
contrailTimer.restart(30);
|
contrailTimer.restart(30);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue