1
0
Fork 0

Pneumatics: remove some extra un-needed code

This commit is contained in:
legoboyvdlp R 2021-06-08 16:09:21 +01:00
parent 9798a20850
commit 113b2264f3

View file

@ -233,14 +233,12 @@ setlistener("/controls/oxygen/masksDeployMan", func {
setlistener("/controls/oxygen/masksDeployMan", func { setlistener("/controls/oxygen/masksDeployMan", func {
masks = getprop("/controls/oxygen/masksDeployMan"); masks = getprop("/controls/oxygen/masksDeployMan");
autoMasks = getprop("/controls/oxygen/masksDeploy");
if (!masks) { if (!masks) {
setprop("/controls/oxygen/masksDeployMan", 1); setprop("/controls/oxygen/masksDeployMan", 1);
} }
}, 0, 0); }, 0, 0);
setlistener("/controls/oxygen/masksDeploy", func { setlistener("/controls/oxygen/masksDeploy", func {
masks = getprop("/controls/oxygen/masksDeployMan");
autoMasks = getprop("/controls/oxygen/masksDeploy"); autoMasks = getprop("/controls/oxygen/masksDeploy");
if (!autoMasks) { if (!autoMasks) {
setprop("/controls/oxygen/masksDeploy", 1); setprop("/controls/oxygen/masksDeploy", 1);