diff --git a/Nasal/Systems/electrical.nas b/Nasal/Systems/electrical.nas index 7a9b8efe..5d939410 100644 --- a/Nasal/Systems/electrical.nas +++ b/Nasal/Systems/electrical.nas @@ -192,9 +192,6 @@ var ELEC = { me.Fail.tr1Fault.setBoolValue(0); me.Fail.tr2Fault.setBoolValue(0); }, - loop: func() { - # Empty - }, }; setlistener("/systems/fmgc/power/power-1-on", func(val) { diff --git a/Nasal/Systems/tyresmoke.nas b/Nasal/Systems/tyresmoke.nas index 3da224aa..ce925851 100755 --- a/Nasal/Systems/tyresmoke.nas +++ b/Nasal/Systems/tyresmoke.nas @@ -10,26 +10,26 @@ var tyresmoke_2 = aircraft.tyresmoke.new(2, 0, 0.8, 0); setlistener("/gear/gear[0]/position-norm", func { if (pts.Gear.position[0].getValue()){ run_tyresmoke0 = 1; - }else{ + } else { run_tyresmoke0 = 0; } -},1,0); +}, 1, 0); setlistener("/gear/gear[1]/position-norm", func { if (pts.Gear.position[1].getValue()){ run_tyresmoke1 = 1; - }else{ + } else { run_tyresmoke1 = 0; } -},1,0); +}, 1, 0); setlistener("/gear/gear[2]/position-norm", func { if (pts.Gear.position[2].getValue()){ run_tyresmoke2 = 1; - }else{ + } else { run_tyresmoke2 = 0; } -},1,0); +}, 1, 0); #============================ Rain =================================== aircraft.rain.init(); @@ -44,7 +44,7 @@ var tyresmoke_and_rain = func { tyresmoke_2.update(); aircraft.rain.update(); settimer(tyresmoke_and_rain, 0); -}# end tyresmoke_and_rain +} # == fire it up === tyresmoke_and_rain();