From b2efcab662fdbfd72df26a6a658f4bde9a88ffba Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 30 Mar 2005 19:04:53 +0000 Subject: [PATCH] Take advantage of a recent nasal change to simplify a boolean condition. --- Nasal/controls.nas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/controls.nas b/Nasal/controls.nas index 00485c46c..b98470191 100644 --- a/Nasal/controls.nas +++ b/Nasal/controls.nas @@ -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() == "" ) { + if ( !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() == "" ) { + if ( !auto.getValue() ) { aileron = props.globals.getNode("/controls/flight/aileron"); if ( aileron.getValue() == nil ) { aileron.setValue( 0.0 );