mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 16:53:55 +00:00
Fix the cell changed flag no longer being reset after the player dies
This commit is contained in:
parent
e7154c3f7c
commit
d7acec74fd
1 changed files with 7 additions and 2 deletions
|
@ -120,16 +120,21 @@ void OMW::Engine::frame(float frametime)
|
||||||
// global scripts
|
// global scripts
|
||||||
mEnvironment.getScriptManager()->getGlobalScripts().run();
|
mEnvironment.getScriptManager()->getGlobalScripts().run();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
mEnvironment.getWorld()->markCellAsUnchanged();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mEnvironment.getWorld()->markCellAsUnchanged();
|
||||||
|
|
||||||
|
if (mEnvironment.getStateManager()->getState()==
|
||||||
|
MWBase::StateManager::State_Running)
|
||||||
|
{
|
||||||
if (!guiActive)
|
if (!guiActive)
|
||||||
{
|
{
|
||||||
double hours = (frametime * mEnvironment.getWorld()->getTimeScaleFactor()) / 3600.0;
|
double hours = (frametime * mEnvironment.getWorld()->getTimeScaleFactor()) / 3600.0;
|
||||||
mEnvironment.getWorld()->advanceTime(hours, true);
|
mEnvironment.getWorld()->advanceTime(hours, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
osg::Timer_t afterScriptTick = osg::Timer::instance()->tick();
|
osg::Timer_t afterScriptTick = osg::Timer::instance()->tick();
|
||||||
|
|
||||||
// update actors
|
// update actors
|
||||||
|
|
Loading…
Reference in a new issue