mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
Don't fade out screen if teleport target cell is not found
This commit is contained in:
parent
143609be59
commit
8a4e0a2ce8
@ -403,22 +403,21 @@ namespace MWWorld
|
|||||||
|
|
||||||
void Scene::changeToInteriorCell (const std::string& cellName, const ESM::Position& position)
|
void Scene::changeToInteriorCell (const std::string& cellName, const ESM::Position& position)
|
||||||
{
|
{
|
||||||
Nif::NIFFile::CacheLock lock;
|
|
||||||
MWBase::Environment::get().getWindowManager()->fadeScreenOut(0.5);
|
|
||||||
|
|
||||||
Loading::Listener* loadingListener = MWBase::Environment::get().getWindowManager()->getLoadingScreen();
|
|
||||||
Loading::ScopedLoad load(loadingListener);
|
|
||||||
|
|
||||||
mRendering.enableTerrain(false);
|
|
||||||
|
|
||||||
std::string loadingInteriorText = "#{sLoadingMessage2}";
|
|
||||||
loadingListener->setLabel(loadingInteriorText);
|
|
||||||
|
|
||||||
CellStore *cell = MWBase::Environment::get().getWorld()->getInterior(cellName);
|
CellStore *cell = MWBase::Environment::get().getWorld()->getInterior(cellName);
|
||||||
bool loadcell = (mCurrentCell == NULL);
|
bool loadcell = (mCurrentCell == NULL);
|
||||||
if(!loadcell)
|
if(!loadcell)
|
||||||
loadcell = *mCurrentCell != *cell;
|
loadcell = *mCurrentCell != *cell;
|
||||||
|
|
||||||
|
Nif::NIFFile::CacheLock lock;
|
||||||
|
MWBase::Environment::get().getWindowManager()->fadeScreenOut(0.5);
|
||||||
|
|
||||||
|
Loading::Listener* loadingListener = MWBase::Environment::get().getWindowManager()->getLoadingScreen();
|
||||||
|
std::string loadingInteriorText = "#{sLoadingMessage2}";
|
||||||
|
loadingListener->setLabel(loadingInteriorText);
|
||||||
|
Loading::ScopedLoad load(loadingListener);
|
||||||
|
|
||||||
|
mRendering.enableTerrain(false);
|
||||||
|
|
||||||
if(!loadcell)
|
if(!loadcell)
|
||||||
{
|
{
|
||||||
MWBase::World *world = MWBase::Environment::get().getWorld();
|
MWBase::World *world = MWBase::Environment::get().getWorld();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user