1
0
Fork 0

Remove AI prefix for the sound path and add it to the config files instead

This commit is contained in:
Erik Hofman 2011-12-14 12:45:22 +01:00
parent 196cfdb569
commit c78b7e1abb

View 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);
}