System: Fix redudency

This commit is contained in:
Joshua Davidson 2018-12-29 12:33:20 -05:00
parent a9c737093f
commit 0d95b0e766

View file

@ -687,6 +687,7 @@ var ELEC = {
setprop("/it-autoflight/input/ap2", 0); setprop("/it-autoflight/input/ap2", 0);
} }
setprop("systems/electrical/on", 0); setprop("systems/electrical/on", 0);
setprop("/systems/thrust/thr-locked", 0);
setprop("/systems/electrical/outputs/adf", 0); setprop("/systems/electrical/outputs/adf", 0);
setprop("/systems/electrical/outputs/audio-panel", 0); setprop("/systems/electrical/outputs/audio-panel", 0);
setprop("/systems/electrical/outputs/audio-panel[1]", 0); setprop("/systems/electrical/outputs/audio-panel[1]", 0);
@ -759,10 +760,6 @@ var ELEC = {
setprop("/controls/lighting/overhead-panel-norm", getprop("/controls/lighting/overhead-panel-knb")); setprop("/controls/lighting/overhead-panel-norm", getprop("/controls/lighting/overhead-panel-knb"));
} }
if (getprop("systems/electrical/on") == 0) {
setprop("/systems/thrust/thr-locked", 0);
}
setprop("/systems/electrical/ac1-src", ac1_src); setprop("/systems/electrical/ac1-src", ac1_src);
setprop("/systems/electrical/ac2-src", ac2_src); setprop("/systems/electrical/ac2-src", ac2_src);