bugfix in engines, flightdeck

This commit is contained in:
Joshua Davidson 2017-04-06 20:12:41 -04:00
parent 49705db439
commit 4698154c11
2 changed files with 12 additions and 1 deletions

View file

@ -4112,6 +4112,17 @@
<value>2</value>
</binding>
</action>
<action>
<button>1</button>
<repeatable type="bool">false</repeatable>
<binding>
<command>property-cycle</command>
<property>controls/engines/engine-start-switch</property>
<value>2</value>
<value>1</value>
<value>0</value>
</binding>
</action>
</animation>
<animation>

View file

@ -57,7 +57,7 @@ setlistener("/controls/engines/engine[1]/cutoff-switch", func {
} else if (getprop("/controls/engines/engine[1]/cutoff-switch") == 1) {
setprop("/controls/engines/engine[1]/starter", 0);
setprop("/controls/engines/engine[1]/cutoff", 1);
setprop("/engines/engine[0]/state", 0);
setprop("/engines/engine[1]/state", 0);
interpolate(engines[1].getNode("egt-actual"), 0, egt_shutdown_time);
}
});