1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 12:54:00 +00:00

Revert "Fix the cell changed flag no longer being reset after the player dies"

This reverts commit d7acec74fd.
This commit is contained in:
scrawl 2016-10-13 17:44:03 +02:00
parent db09858f59
commit 9d2e0124dc

View File

@ -120,21 +120,16 @@ void OMW::Engine::frame(float frametime)
// global scripts
mEnvironment.getScriptManager()->getGlobalScripts().run();
}
mEnvironment.getWorld()->markCellAsUnchanged();
}
}
mEnvironment.getWorld()->markCellAsUnchanged();
if (mEnvironment.getStateManager()->getState()==
MWBase::StateManager::State_Running)
{
if (!guiActive)
{
double hours = (frametime * mEnvironment.getWorld()->getTimeScaleFactor()) / 3600.0;
mEnvironment.getWorld()->advanceTime(hours, true);
}
}
osg::Timer_t afterScriptTick = osg::Timer::instance()->tick();
// update actors