mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 20:11:36 +00:00
Remove effects added by unloading cells
This commit is contained in:
parent
7361a1c6fd
commit
9fc5ced9c9
1 changed files with 3 additions and 0 deletions
|
@ -366,6 +366,9 @@ namespace MWWorld
|
||||||
|
|
||||||
MWBase::Environment::get().getSoundManager()->stopSound (cell);
|
MWBase::Environment::get().getSoundManager()->stopSound (cell);
|
||||||
mActiveCells.erase(cell);
|
mActiveCells.erase(cell);
|
||||||
|
// Clean up any effects that may have been spawned while unloading all cells
|
||||||
|
if(mActiveCells.empty())
|
||||||
|
mRendering.notifyWorldSpaceChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Scene::loadCell(CellStore *cell, Loading::Listener* loadingListener, bool respawn, const osg::Vec3f& position)
|
void Scene::loadCell(CellStore *cell, Loading::Listener* loadingListener, bool respawn, const osg::Vec3f& position)
|
||||||
|
|
Loading…
Reference in a new issue