1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-01 07:45:33 +00:00

Remove unnecessary hack

This commit is contained in:
Chris Robinson 2012-03-17 09:16:09 -07:00
parent d57051375d
commit e49a090af7

View file

@ -162,9 +162,15 @@ namespace MWSound
bool SoundManager::isPlaying(MWWorld::Ptr ptr, const std::string &id) const
{
// HACK: Return true to prevent the engine from trying to keep playing
// sounds and tanking the framerate.
return true;
SoundMap::const_iterator snditer = ActiveSounds.find(ptr);
if(snditer == ActiveSounds.end())
return false;
IDMap::const_iterator iditer = snditer->second.find(id);
if(iditer == snditer->second.end())
return false;
return iditer->second->isPlaying();
}
// Remove all references to objects belonging to a given cell