Remove extra bracket from pneumatics.nas

This commit is contained in:
Jonathan Redpath 2017-12-03 09:44:01 -04:00
parent 3d5bd86529
commit 0803bb1822

View file

@ -415,36 +415,36 @@ var flashfault2 = func {
setprop("/controls/deice/eng2-fault", 0);
}, 0.5);
}
# Oxygen (Cabin)
setlistener("/controls/oxygen/masksDeployMan", func {
if (guard and masks) {
setprop("/controls/oxygen/masksDeployMan", 0);
} else if (!guard and masks) {
setprop("/controls/oxygen/masksDeployMan", 1);
setprop("/controls/oxygen/masksDeploy", 1);
setprop("/controls/oxygen/masksSys", 1);
}
});
# Oxygen (Cabin)
if (cabinalt > 13500) {
setlistener("/controls/oxygen/masksDeployMan", func {
if (guard and masks) {
setprop("/controls/oxygen/masksDeployMan", 0);
} else if (!guard and masks) {
setprop("/controls/oxygen/masksDeployMan", 1);
setprop("/controls/oxygen/masksDeploy", 1);
setprop("/controls/oxygen/masksSys", 1);
}
setlistener("/controls/oxygen/masksDeployMan", func {
var masks = getprop("/controls/oxygen/masksDeployMan");
var autoMasks = getprop("/controls/oxygen/masksDeploy");
if (!masks) {
setprop("/controls/oxygen/masksDeployMan", 1);
}
});
});
setlistener("/controls/oxygen/masksDeploy", func {
var masks = getprop("/controls/oxygen/masksDeployMan");
var autoMasks = getprop("/controls/oxygen/masksDeploy");
if (!autoMasks) {
setprop("/controls/oxygen/masksDeploy", 1);
}
});
if (cabinalt > 13500) {
setprop("/controls/oxygen/masksDeploy", 1);
setprop("/controls/oxygen/masksSys", 1);
}
setlistener("/controls/oxygen/masksDeployMan", func {
var masks = getprop("/controls/oxygen/masksDeployMan");
var autoMasks = getprop("/controls/oxygen/masksDeploy");
if (!masks) {
setprop("/controls/oxygen/masksDeployMan", 1);
}
});
setlistener("/controls/oxygen/masksDeploy", func {
var masks = getprop("/controls/oxygen/masksDeployMan");
var autoMasks = getprop("/controls/oxygen/masksDeploy");
if (!autoMasks) {
setprop("/controls/oxygen/masksDeploy", 1);
}
});