- 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:
parent
197fd50848
commit
016750c865
1 changed files with 13 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue