System: Fix broken Bleed EXT fail

This commit is contained in:
Joshua Davidson 2019-01-04 21:36:06 -05:00
parent bf88b87306
commit 31931e93e0
3 changed files with 10 additions and 11 deletions

View file

@ -199,9 +199,9 @@
</checkbox>
</group>
<vrule/>
<group>
<layout>vbox</layout>
@ -376,7 +376,7 @@
</group>
<vrule/>
<group>
<layout>vbox</layout>

View file

@ -203,6 +203,12 @@ var PNEU = {
setprop("/systems/pneumatic/bleedapu", 0);
}
if (groundair_supp and !bleedext_fail) {
setprop("/systems/pneumatic/groundair", 39);
} else {
setprop("/systems/pneumatic/groundair", 0);
}
ground = getprop("/systems/pneumatic/groundair");
bleedapu = getprop("/systems/pneumatic/bleedapu");
@ -295,12 +301,6 @@ var PNEU = {
setprop("/systems/pneumatic/total-psi", total_psi_calc);
}
if (groundair_supp) {
setprop("/systems/pneumatic/groundair", 39);
} else {
setprop("/systems/pneumatic/groundair", 0);
}
if (engantiice1 and bleed1 > 20) { # shut down anti-ice if bleed is lost else turn it on
setprop("/controls/deice/lengine", 0);
setprop("/controls/deice/eng1-on", 0);
@ -320,7 +320,6 @@ var PNEU = {
}
total_psi = getprop("/systems/pneumatic/total-psi");
phase = getprop("/FMGC/status/phase");
pressmode = getprop("/systems/pressurization/mode");
state1 = getprop("/systems/thrust/state1");

View file

@ -1 +1 @@
4725
4726