From c78b7e1abb7ab24b72e3733993f460794df2ec69 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Wed, 14 Dec 2011 12:45:22 +0100 Subject: [PATCH] Remove AI prefix for the sound path and add it to the config files instead --- src/AIModel/AIBase.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/AIModel/AIBase.cxx b/src/AIModel/AIBase.cxx index 7871f7e8e..07fc6c31a 100644 --- a/src/AIModel/AIBase.cxx +++ b/src/AIModel/AIBase.cxx @@ -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); }