From 02f8a61438ce3b97022b34b89d4a073f4af99ace Mon Sep 17 00:00:00 2001 From: Jonathan Redpath Date: Fri, 14 Sep 2018 16:08:33 +0100 Subject: [PATCH] Bugfix: engines.nas broken by props.nas change --- Nasal/engines-cfm.nas | 4 ++-- Nasal/engines-iae.nas | 4 ++-- revision.txt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Nasal/engines-cfm.nas b/Nasal/engines-cfm.nas index b2b63fa4..13d12751 100644 --- a/Nasal/engines-cfm.nas +++ b/Nasal/engines-cfm.nas @@ -60,7 +60,7 @@ var cutoff_one = func { setprop("/systems/pneumatic/eng1-starter", 0); setprop("/controls/engines/engine[0]/starter", 0); setprop("/controls/engines/engine[0]/cutoff", 1); - var engine0_state = props.globals.initNode("/engines/engine[0]/state", 0, "INT"); + setprop("/engines/engine[0]/state", 0); interpolate(engines[0].getNode("egt-actual"), 0, egt_shutdown_time); eng_one_n2_check.stop(); } @@ -144,7 +144,7 @@ var cutoff_two = func { setprop("/systems/pneumatic/eng2-starter", 0); setprop("/controls/engines/engine[1]/starter", 0); setprop("/controls/engines/engine[1]/cutoff", 1); - var engine1_state = props.globals.initNode("/engines/engine[0]/state", 0, "INT"); + setprop("/engines/engine[0]/state", 0); interpolate(engines[1].getNode("egt-actual"), 0, egt_shutdown_time); } diff --git a/Nasal/engines-iae.nas b/Nasal/engines-iae.nas index 3eb66872..b8ba6853 100644 --- a/Nasal/engines-iae.nas +++ b/Nasal/engines-iae.nas @@ -60,7 +60,7 @@ var cutoff_one = func { setprop("/systems/pneumatic/eng1-starter", 0); setprop("/controls/engines/engine[0]/starter", 0); setprop("/controls/engines/engine[0]/cutoff", 1); - var engine0_state = props.globals.initNode("/engines/engine[0]/state", 0, "INT"); + setprop("/engines/engine[0]/state", 0); interpolate(engines[0].getNode("egt-actual"), 0, egt_shutdown_time); eng_one_n2_check.stop(); } @@ -144,7 +144,7 @@ var cutoff_two = func { setprop("/systems/pneumatic/eng2-starter", 0); setprop("/controls/engines/engine[1]/starter", 0); setprop("/controls/engines/engine[1]/cutoff", 1); - var engine1_state = props.globals.initNode("/engines/engine[1]/state", 0, "INT"); + setprop("/engines/engine[1]/state", 0); interpolate(engines[1].getNode("egt-actual"), 0, egt_shutdown_time); } diff --git a/revision.txt b/revision.txt index bf388ea4..5bbc35dc 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -4637 \ No newline at end of file +4638 \ No newline at end of file