mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-10-05 05:56:32 +00:00
Merge pull request #44 from DreamWeave-MP/i-dont-want-to-hear-about-it
Fix(client): Don't play drop sounds from other peoples' interiors
This commit is contained in:
commit
0ef2f55114
1 changed files with 3 additions and 1 deletions
|
@ -448,7 +448,9 @@ void ObjectList::placeObjects(MWWorld::CellStore* cellStore)
|
|||
|
||||
if (baseObject.droppedByPlayer)
|
||||
{
|
||||
MWBase::Environment::get().getSoundManager()->playSound3D(newPtr, newPtr.getClass().getDownSoundId(newPtr), 1.f, 1.f);
|
||||
|
||||
if (cellStore->getCell() == &mwmp::Main::get().getLocalPlayer()->cell)
|
||||
MWBase::Environment::get().getSoundManager()->playSound3D(newPtr, newPtr.getClass().getDownSoundId(newPtr), 1.f, 1.f);
|
||||
|
||||
if (guid == Main::get().getLocalPlayer()->guid)
|
||||
world->PCDropped(newPtr);
|
||||
|
|
Loading…
Reference in a new issue