Minor formatting
This commit is contained in:
parent
f10242d573
commit
e498edb4a3
2 changed files with 7 additions and 10 deletions
|
@ -192,9 +192,6 @@ var ELEC = {
|
||||||
me.Fail.tr1Fault.setBoolValue(0);
|
me.Fail.tr1Fault.setBoolValue(0);
|
||||||
me.Fail.tr2Fault.setBoolValue(0);
|
me.Fail.tr2Fault.setBoolValue(0);
|
||||||
},
|
},
|
||||||
loop: func() {
|
|
||||||
# Empty
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
setlistener("/systems/fmgc/power/power-1-on", func(val) {
|
setlistener("/systems/fmgc/power/power-1-on", func(val) {
|
||||||
|
|
|
@ -10,26 +10,26 @@ var tyresmoke_2 = aircraft.tyresmoke.new(2, 0, 0.8, 0);
|
||||||
setlistener("/gear/gear[0]/position-norm", func {
|
setlistener("/gear/gear[0]/position-norm", func {
|
||||||
if (pts.Gear.position[0].getValue()){
|
if (pts.Gear.position[0].getValue()){
|
||||||
run_tyresmoke0 = 1;
|
run_tyresmoke0 = 1;
|
||||||
}else{
|
} else {
|
||||||
run_tyresmoke0 = 0;
|
run_tyresmoke0 = 0;
|
||||||
}
|
}
|
||||||
},1,0);
|
}, 1, 0);
|
||||||
|
|
||||||
setlistener("/gear/gear[1]/position-norm", func {
|
setlistener("/gear/gear[1]/position-norm", func {
|
||||||
if (pts.Gear.position[1].getValue()){
|
if (pts.Gear.position[1].getValue()){
|
||||||
run_tyresmoke1 = 1;
|
run_tyresmoke1 = 1;
|
||||||
}else{
|
} else {
|
||||||
run_tyresmoke1 = 0;
|
run_tyresmoke1 = 0;
|
||||||
}
|
}
|
||||||
},1,0);
|
}, 1, 0);
|
||||||
|
|
||||||
setlistener("/gear/gear[2]/position-norm", func {
|
setlistener("/gear/gear[2]/position-norm", func {
|
||||||
if (pts.Gear.position[2].getValue()){
|
if (pts.Gear.position[2].getValue()){
|
||||||
run_tyresmoke2 = 1;
|
run_tyresmoke2 = 1;
|
||||||
}else{
|
} else {
|
||||||
run_tyresmoke2 = 0;
|
run_tyresmoke2 = 0;
|
||||||
}
|
}
|
||||||
},1,0);
|
}, 1, 0);
|
||||||
|
|
||||||
#============================ Rain ===================================
|
#============================ Rain ===================================
|
||||||
aircraft.rain.init();
|
aircraft.rain.init();
|
||||||
|
@ -44,7 +44,7 @@ var tyresmoke_and_rain = func {
|
||||||
tyresmoke_2.update();
|
tyresmoke_2.update();
|
||||||
aircraft.rain.update();
|
aircraft.rain.update();
|
||||||
settimer(tyresmoke_and_rain, 0);
|
settimer(tyresmoke_and_rain, 0);
|
||||||
}# end tyresmoke_and_rain
|
}
|
||||||
|
|
||||||
# == fire it up ===
|
# == fire it up ===
|
||||||
tyresmoke_and_rain();
|
tyresmoke_and_rain();
|
||||||
|
|
Loading…
Reference in a new issue