1
0
Fork 0

- remove "nasal-dir-initialized" signal node after use. This code is executed

before the property tree is stored away for reinit, so the signal would
  be emitted again on reset.
- fix inconsistent style that sneaked in with a previous patch
This commit is contained in:
mfranz 2007-01-23 15:53:04 +00:00
parent 197fd50848
commit 016750c865

View file

@ -426,7 +426,12 @@ void FGNasalSys::init()
loadModule(fullpath, file.base().c_str());
}
ulCloseDir(dir);
fgSetBool("/sim/signals/nasal-dir-initialized", true);
// set signal and remove node to avoid restoring at reinit
const char *s = "nasal-dir-initialized";
SGPropertyNode *signal = fgGetNode("/sim/signals", true);
signal->setBoolValue(s, true);
signal->removeChildren(s);
// Pull scripts out of the property tree, too
loadPropertyScripts();