forked from mirror/openmw-tes3mp
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
|
bool SoundManager::isPlaying(MWWorld::Ptr ptr, const std::string &id) const
|
||||||
{
|
{
|
||||||
// HACK: Return true to prevent the engine from trying to keep playing
|
SoundMap::const_iterator snditer = ActiveSounds.find(ptr);
|
||||||
// sounds and tanking the framerate.
|
if(snditer == ActiveSounds.end())
|
||||||
return true;
|
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
|
// Remove all references to objects belonging to a given cell
|
||||||
|
|
Loading…
Reference in a new issue