1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-10-05 16:56:31 +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:
Dave Corley 2023-10-03 06:37:41 -05:00 committed by GitHub
commit 0ef2f55114
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -448,7 +448,9 @@ void ObjectList::placeObjects(MWWorld::CellStore* cellStore)
if (baseObject.droppedByPlayer) 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) if (guid == Main::get().getLocalPlayer()->guid)
world->PCDropped(newPtr); world->PCDropped(newPtr);