From 34be6e9e1adea81e86029b92c186d6cca43ef494 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Tue, 4 Jul 2017 22:05:23 -0400 Subject: [PATCH] A3XX: Fix autostart, manual start still broken --- Nasal/engines.nas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/engines.nas b/Nasal/engines.nas index e6b73986..413b901e 100644 --- a/Nasal/engines.nas +++ b/Nasal/engines.nas @@ -44,9 +44,9 @@ var eng_init = func { setlistener("/controls/engines/engine[0]/cutoff-switch", func { if (getprop("/controls/engines/engine[0]/cutoff-switch") == 0) { if (getprop("/controls/engines/engine[0]/man-start") == 0) { + setprop("/systems/pneumatic/eng1-starter", 1); start_one_check(); } else if (getprop("/controls/engines/engine[0]/man-start") == 1) { - setprop("/systems/pneumatic/eng1-starter", 1); eng_one_man_startt.start(); } } else if (getprop("/controls/engines/engine[0]/cutoff-switch") == 1) { @@ -93,9 +93,9 @@ var start_one_check_b = func { setlistener("/controls/engines/engine[1]/cutoff-switch", func { if (getprop("/controls/engines/engine[1]/cutoff-switch") == 0) { if (getprop("/controls/engines/engine[1]/man-start") == 0) { + setprop("/systems/pneumatic/eng2-starter", 1); start_two_check(); } else if (getprop("/controls/engines/engine[1]/man-start") == 1) { - setprop("/systems/pneumatic/eng2-starter", 1); eng_two_man_startt.start(); } } else if (getprop("/controls/engines/engine[1]/cutoff-switch") == 1) {