mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-05 22:19:42 +00:00
Don't play sound for torches with OffDefault flag (Fixes #1884)
This commit is contained in:
parent
8b0cb239a9
commit
6b06ab23aa
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ namespace MWClass
|
|||
if(!model.empty())
|
||||
physics.addObject(ptr,ref->mBase->mData.mFlags & ESM::Light::Carry);
|
||||
|
||||
if (!ref->mBase->mSound.empty())
|
||||
if (!ref->mBase->mSound.empty() && !(ref->mBase->mData.mFlags & ESM::Light::OffDefault))
|
||||
MWBase::Environment::get().getSoundManager()->playSound3D(ptr, ref->mBase->mSound, 1.0, 1.0,
|
||||
MWBase::SoundManager::Play_TypeSfx,
|
||||
MWBase::SoundManager::Play_Loop);
|
||||
|
|
Loading…
Reference in a new issue