Remove AI prefix for the sound path and add it to the config files instead
This commit is contained in:
parent
196cfdb569
commit
c78b7e1abb
1 changed files with 1 additions and 4 deletions
|
@ -925,10 +925,7 @@ void FGAIModelData::modelLoaded(const string& path, SGPropertyNode *prop, osg::N
|
||||||
{
|
{
|
||||||
const char* fxpath = prop->getStringValue("sound/path");
|
const char* fxpath = prop->getStringValue("sound/path");
|
||||||
if (fxpath) {
|
if (fxpath) {
|
||||||
string sound_path = string(fxpath);
|
_path = string(fxpath);
|
||||||
if (sound_path != "") {
|
|
||||||
_path = "/AI/"+sound_path;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
_nasal->modelLoaded(path, prop, n);
|
_nasal->modelLoaded(path, prop, n);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue