|
|
@ -111,7 +111,9 @@ namespace MWWorld
|
|
|
|
mRendering.removeCell(*iter);
|
|
|
|
mRendering.removeCell(*iter);
|
|
|
|
|
|
|
|
|
|
|
|
MWBase::Environment::get().getWorld()->getLocalScripts().clearCell (*iter);
|
|
|
|
MWBase::Environment::get().getWorld()->getLocalScripts().clearCell (*iter);
|
|
|
|
|
|
|
|
|
|
|
|
MWBase::Environment::get().getMechanicsManager()->drop (*iter);
|
|
|
|
MWBase::Environment::get().getMechanicsManager()->drop (*iter);
|
|
|
|
|
|
|
|
|
|
|
|
MWBase::Environment::get().getSoundManager()->stopSound (*iter);
|
|
|
|
MWBase::Environment::get().getSoundManager()->stopSound (*iter);
|
|
|
|
mActiveCells.erase(*iter);
|
|
|
|
mActiveCells.erase(*iter);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -164,6 +166,7 @@ namespace MWWorld
|
|
|
|
void Scene::playerCellChange(MWWorld::CellStore *cell, const ESM::Position& pos, bool adjustPlayerPos)
|
|
|
|
void Scene::playerCellChange(MWWorld::CellStore *cell, const ESM::Position& pos, bool adjustPlayerPos)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MWBase::World *world = MWBase::Environment::get().getWorld();
|
|
|
|
MWBase::World *world = MWBase::Environment::get().getWorld();
|
|
|
|
|
|
|
|
MWWorld::Ptr old = world->getPlayer().getPlayer();
|
|
|
|
world->getPlayer().setCell(cell);
|
|
|
|
world->getPlayer().setCell(cell);
|
|
|
|
|
|
|
|
|
|
|
|
MWWorld::Ptr player = world->getPlayer().getPlayer();
|
|
|
|
MWWorld::Ptr player = world->getPlayer().getPlayer();
|
|
|
@ -183,7 +186,7 @@ namespace MWWorld
|
|
|
|
MWBase::MechanicsManager *mechMgr =
|
|
|
|
MWBase::MechanicsManager *mechMgr =
|
|
|
|
MWBase::Environment::get().getMechanicsManager();
|
|
|
|
MWBase::Environment::get().getMechanicsManager();
|
|
|
|
|
|
|
|
|
|
|
|
mechMgr->add(player);
|
|
|
|
mechMgr->updateCell(old, player);
|
|
|
|
mechMgr->watchActor(player);
|
|
|
|
mechMgr->watchActor(player);
|
|
|
|
|
|
|
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->changeCell(mCurrentCell);
|
|
|
|
MWBase::Environment::get().getWindowManager()->changeCell(mCurrentCell);
|
|
|
@ -205,9 +208,6 @@ namespace MWWorld
|
|
|
|
Loading::Listener* loadingListener = MWBase::Environment::get().getWindowManager()->getLoadingScreen();
|
|
|
|
Loading::Listener* loadingListener = MWBase::Environment::get().getWindowManager()->getLoadingScreen();
|
|
|
|
Loading::ScopedLoad load(loadingListener);
|
|
|
|
Loading::ScopedLoad load(loadingListener);
|
|
|
|
|
|
|
|
|
|
|
|
// remove active
|
|
|
|
|
|
|
|
MWBase::Environment::get().getMechanicsManager()->remove(MWBase::Environment::get().getWorld()->getPlayer().getPlayer());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::string loadingExteriorText = "#{sLoadingMessage3}";
|
|
|
|
std::string loadingExteriorText = "#{sLoadingMessage3}";
|
|
|
|
loadingListener->setLabel(loadingExteriorText);
|
|
|
|
loadingListener->setLabel(loadingExteriorText);
|
|
|
|
|
|
|
|
|
|
|
|