mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-24 05:00:31 -04:00
[Client] Only play sounds from active cells when receiving ObjectSound
This commit is contained in:
parent
48de84ec32
commit
dbae0bddc2
@ -21,7 +21,13 @@ namespace mwmp
|
|||||||
|
|
||||||
if (!ptrCellStore) return;
|
if (!ptrCellStore) return;
|
||||||
|
|
||||||
objectList.playObjectSounds(ptrCellStore);
|
MWBase::World* world = MWBase::Environment::get().getWorld();
|
||||||
|
|
||||||
|
// Only play sounds in active cells
|
||||||
|
if (world->isCellActive(*ptrCellStore->getCell()))
|
||||||
|
{
|
||||||
|
objectList.playObjectSounds(ptrCellStore);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user