From c23971dccafbb082a71fce24d1ba35bb75955d1c Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 14 Aug 2008 21:38:32 +0000 Subject: [PATCH] aar.nas: minor cleanup --- Aircraft/Generic/aar.nas | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Aircraft/Generic/aar.nas b/Aircraft/Generic/aar.nas index 81bb23c2f..406e5196e 100644 --- a/Aircraft/Generic/aar.nas +++ b/Aircraft/Generic/aar.nas @@ -164,9 +164,7 @@ setlistener("/sim/signals/fdm-initialized", func { if (contains(globals, "fuel") and typeof(fuel) == "hash") fuel.loop = func nil; # kill $FG_ROOT/Nasal/fuel.nas' loop - refuelingN = props.globals.getNode("/systems/refuel/contact", 1); - refuelingN.setBoolValue(0); - + refuelingN = props.initNode("/systems/refuel/contact", 0, "BOOL"); aimodelsN = props.globals.getNode("ai/models", 1); engines = props.globals.getNode("engines", 1).getChildren("engine"); @@ -187,7 +185,7 @@ setlistener("/sim/signals/fdm-initialized", func { props.initNode(t.getNode("selected", 1), 1, "BOOL"); } - foreach (var t; props.globals.getNode("/systems/refuel", 1).getChildren("type")) + foreach (var t; props.globals.getNode("systems/refuel", 1).getChildren("type")) types[t.getValue()] = 1; setlistener("sim/freeze/fuel", func(n) fuel_freeze = n.getBoolValue(), 1);