From 2fec2ffa09044bad1ede6979f0a35c714c93b886 Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 29 Dec 2003 22:59:00 +0000 Subject: [PATCH] Hook an initialization function to patch up any missing /sim/input/selected/engine[n] properties. Also, new properties get empty string values (which are boolean true in Nasal, maybe that should be changed?), so test for numeric truth. --- Nasal/controls.nas | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Nasal/controls.nas b/Nasal/controls.nas index 67c4d6163..789dd1d27 100644 --- a/Nasal/controls.nas +++ b/Nasal/controls.nas @@ -3,12 +3,25 @@ startEngine = func { engs = props.globals.getNode("/controls/engines").getChildren("engine"); for(i=0; i