mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
Don't trigger CellChanged events when crossing exterior cell borders (Fixes #1874)
This commit is contained in:
parent
b574131b06
commit
0c67ff9ed0
@ -259,6 +259,10 @@ namespace MWWorld
|
|||||||
|
|
||||||
void Scene::changeCell (int X, int Y, const ESM::Position& position, bool adjustPlayerPos)
|
void Scene::changeCell (int X, int Y, const ESM::Position& position, bool adjustPlayerPos)
|
||||||
{
|
{
|
||||||
|
// CellChanged events should not trigger when crossing exterior cell borders
|
||||||
|
// TODO: check worldspace
|
||||||
|
bool cellChanged = !mCurrentCell || !mCurrentCell->isExterior();
|
||||||
|
|
||||||
Loading::Listener* loadingListener = MWBase::Environment::get().getWindowManager()->getLoadingScreen();
|
Loading::Listener* loadingListener = MWBase::Environment::get().getWindowManager()->getLoadingScreen();
|
||||||
Loading::ScopedLoad load(loadingListener);
|
Loading::ScopedLoad load(loadingListener);
|
||||||
|
|
||||||
@ -358,7 +362,7 @@ namespace MWWorld
|
|||||||
// Sky system
|
// Sky system
|
||||||
MWBase::Environment::get().getWorld()->adjustSky();
|
MWBase::Environment::get().getWorld()->adjustSky();
|
||||||
|
|
||||||
mCellChanged = true;
|
mCellChanged = cellChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
//We need the ogre renderer and a scene node.
|
//We need the ogre renderer and a scene node.
|
||||||
|
Loading…
Reference in New Issue
Block a user