From: Erik Hofman Date: Wed, 14 Dec 2011 11:45:22 +0000 (+0100) Subject: Remove AI prefix for the sound path and add it to the config files instead X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c78b7e1abb7ab24b72e3733993f460794df2ec69;p=flightgear.git Remove AI prefix for the sound path and add it to the config files instead --- 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); }