bugfix, sorry never commited it yet
This commit is contained in:
parent
ccea61329f
commit
983aa3f812
1 changed files with 4 additions and 2 deletions
|
@ -59,8 +59,8 @@ setlistener("/sim/signals/fdm-initialized", func {
|
||||||
var e = 0;
|
var e = 0;
|
||||||
var spread = 0;
|
var spread = 0;
|
||||||
var windowprb = getprop("/controls/switches/windowprobeheat");
|
var windowprb = getprop("/controls/switches/windowprobeheat");
|
||||||
stateL = getprop("/engines/engine[0]/state");
|
var stateL = getprop("/engines/engine[0]/state");
|
||||||
stateR = getprop("/engines/engine[1]/state");
|
var stateR = getprop("/engines/engine[1]/state");
|
||||||
});
|
});
|
||||||
|
|
||||||
var icingInit = func {
|
var icingInit = func {
|
||||||
|
@ -116,6 +116,8 @@ var icingModel = func {
|
||||||
rengAnti = getprop("/controls/deice/rengine");
|
rengAnti = getprop("/controls/deice/rengine");
|
||||||
WingHasBeenTurnedOff = getprop("/controls/deice/WingHasBeenTurnedOff");
|
WingHasBeenTurnedOff = getprop("/controls/deice/WingHasBeenTurnedOff");
|
||||||
GroundModeFinished = getprop("/controls/deice/GroundModeFinished");
|
GroundModeFinished = getprop("/controls/deice/GroundModeFinished");
|
||||||
|
stateL = getprop("/engines/engine[0]/state");
|
||||||
|
stateR = getprop("/engines/engine[1]/state");
|
||||||
|
|
||||||
if (temperature >= 0 or !icingCond) {
|
if (temperature >= 0 or !icingCond) {
|
||||||
setprop("/systems/icing/severity", "0");
|
setprop("/systems/icing/severity", "0");
|
||||||
|
|
Reference in a new issue