1
0
Fork 0

A small fix to track latest nasal changes.

This commit is contained in:
curt 2005-03-30 17:00:50 +00:00
parent a978a79d16
commit b0862aa5db

View file

@ -206,7 +206,7 @@ adjEngControl = func {
# arg[1] is the auto-throttle target speed increment
incThrottle = func {
auto = props.globals.getNode("/autopilot/locks/speed", 1);
if ( !auto.getValue() or auto.getValue() == 0 ) {
if ( !auto.getValue() or auto.getValue() == "" ) {
engs = props.globals.getNode("/controls/engines").getChildren("engine");
foreach(e; engs) {
node = e.getNode("throttle", 1);
@ -235,7 +235,7 @@ incThrottle = func {
# arg[1] is the autopilot target heading increment
incAileron = func {
auto = props.globals.getNode("/autopilot/locks/heading", 1);
if ( !auto.getValue() or auto.getValue() == 0 ) {
if ( !auto.getValue() or auto.getValue() == "" ) {
aileron = props.globals.getNode("/controls/flight/aileron");
if ( aileron.getValue() == nil ) {
aileron.setValue( 0.0 );