forked from teamnwah/openmw-tes3coop
Remove unnecessary hack
This commit is contained in:
parent
d57051375d
commit
e49a090af7
1 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue