1
0
Fork 0

/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:
Richard Harrison 2018-11-18 17:17:02 +01:00
parent 3c867578dc
commit 11ed499d61

View file

@ -35,5 +35,6 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
var static_contrail_node = props.globals.getNode("sim/ai/aircraft/contrail", 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);
});