A3XX: Fix bug in Electrical, thanks swm!
This commit is contained in:
parent
1279ebef2d
commit
1da96f3c32
1 changed files with 8 additions and 0 deletions
|
@ -277,6 +277,14 @@ var master_elec = func {
|
|||
setprop("/systems/electrical/extra/apu-hz", 0);
|
||||
}
|
||||
|
||||
if (stateL == 3 and gen1_sw and !gen1_fail) {
|
||||
setprop("/systems/electrical/extra/gen1-volts", ac_volt_std);
|
||||
setprop("/systems/electrical/bus/gen1-hz", ac_hz_std);
|
||||
} else {
|
||||
setprop("/systems/electrical/extra/gen1-volts", 0);
|
||||
setprop("/systems/electrical/bus/gen1-hz", 0);
|
||||
}
|
||||
|
||||
if (stateR == 3 and gen2_sw and !gen2_fail) {
|
||||
setprop("/systems/electrical/extra/gen2-volts", ac_volt_std);
|
||||
setprop("/systems/electrical/bus/gen2-hz", ac_hz_std);
|
||||
|
|
Reference in a new issue