]> git.mxchange.org Git - flightgear.git/commitdiff
if a local (ai/mp) root node is given, append it to the module name, so
authormfranz <mfranz>
Mon, 1 Oct 2007 15:59:24 +0000 (15:59 +0000)
committermfranz <mfranz>
Mon, 1 Oct 2007 15:59:24 +0000 (15:59 +0000)
that one instance doesn't destroy the namespace of all other instances

src/Scripting/NasalSys.cxx

index 9b78f808198915ed1849bce0dd3ae4d07327328b..da88fbf1307db83d2cae2e8b8f8be49d04ab17c5 100644 (file)
@@ -925,6 +925,8 @@ void FGNasalModelData::modelLoaded(const string& path, SGPropertyNode *prop,
         return;
 
     _module = path;
+    if(_props)
+        _module += ':' + _props->getPath();
     const char *s = load ? load->getStringValue() : "";
     nasalSys->createModule(_module.c_str(), _module.c_str(), s, strlen(s), _props);
 }