]> git.mxchange.org Git - flightgear.git/commitdiff
Remove AI prefix for the sound path and add it to the config files instead
authorErik Hofman <erik@ehofman.com>
Wed, 14 Dec 2011 11:45:22 +0000 (12:45 +0100)
committerErik Hofman <erik@ehofman.com>
Wed, 14 Dec 2011 11:45:22 +0000 (12:45 +0100)
src/AIModel/AIBase.cxx

index 7871f7e8e08b999ca0b8f15b528b3a6e9681a21b..07fc6c31a49c38f86883ec0ee03ffd0da94efb70 100644 (file)
@@ -925,10 +925,7 @@ void FGAIModelData::modelLoaded(const string& path, SGPropertyNode *prop, osg::N
 {
     const char* fxpath = prop->getStringValue("sound/path");
     if (fxpath) {
-        string sound_path = string(fxpath);
-        if (sound_path != "") {
-            _path = "/AI/"+sound_path;
-        }
+        _path = string(fxpath);
     }
     _nasal->modelLoaded(path, prop, n);
 }