pneumatics bugfix

This commit is contained in:
Jonathan Redpath 2017-05-18 15:04:29 +01:00
parent 650d9fdb3f
commit 5f9acbc3fb

View file

@ -112,7 +112,7 @@ var master_pneu = func {
if ((bleed1 + bleed2 + bleedapu) > 42) { if ((bleed1 + bleed2 + bleedapu) > 42) {
setprop("/systems/pneumatic/total-psi", 42); setprop("/systems/pneumatic/total-psi", 42);
} else { } else {
var total_psi_calc = ((bleed1 + bleed2 + bleedapu) - start_psi - pack_psi); var total_psi_calc = ((bleed1 + bleed2 + bleedapu + ground) - start_psi - pack_psi);
setprop("/systems/pneumatic/total-psi", total_psi_calc); setprop("/systems/pneumatic/total-psi", total_psi_calc);
} }