Fixed sound objects.
This commit is contained in:
parent
9dff5a7990
commit
a09c1346b7
@ -482,7 +482,8 @@ TrackObjectPresentationSound::TrackObjectPresentationSound(const XMLNode& xml_no
|
||||
xml_node.get("max_dist", &max_dist );
|
||||
|
||||
// first try track dir, then global dir
|
||||
std::string soundfile = file_manager->getAsset(FileManager::MODEL,sound);
|
||||
std::string soundfile = World::getWorld()->getTrack()->getTrackFile(sound);
|
||||
//std::string soundfile = file_manager->getAsset(FileManager::MODEL,sound);
|
||||
if (!file_manager->fileExists(soundfile))
|
||||
{
|
||||
soundfile = file_manager->getAsset(FileManager::SFX, sound);
|
||||
|
Loading…
Reference in New Issue
Block a user