Fix(client): Don't play drop sounds from other peoples' interiors

pull/656/head
Dave Corley 7 months ago
parent 7ee64c9b25
commit 12c12baa15

@ -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…
Cancel
Save