|
|
|
@ -6,6 +6,8 @@
|
|
|
|
|
#include <iostream>
|
|
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
|
|
#include <OgreVector3.h>
|
|
|
|
|
|
|
|
|
|
#include "components/esm/records.hpp"
|
|
|
|
|
#include <components/esm_store/cell_store.hpp>
|
|
|
|
|
#include <components/misc/fileops.hpp>
|
|
|
|
@ -158,7 +160,8 @@ bool OMW::Engine::frameStarted(const Ogre::FrameEvent& evt)
|
|
|
|
|
mEnvironment.mWorld->markCellAsUnchanged();
|
|
|
|
|
|
|
|
|
|
// update actors
|
|
|
|
|
mEnvironment.mMechanicsManager->update();
|
|
|
|
|
std::vector<std::pair<std::string, Ogre::Vector3> > movement;
|
|
|
|
|
mEnvironment.mMechanicsManager->update (movement);
|
|
|
|
|
|
|
|
|
|
if (focusFrameCounter++ == focusUpdateFrame)
|
|
|
|
|
{
|
|
|
|
@ -180,7 +183,7 @@ bool OMW::Engine::frameStarted(const Ogre::FrameEvent& evt)
|
|
|
|
|
focusFrameCounter = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mEnvironment.mWorld->doPhysics (mEnvironment.mFrameDuration);
|
|
|
|
|
mEnvironment.mWorld->doPhysics (movement, mEnvironment.mFrameDuration);
|
|
|
|
|
}
|
|
|
|
|
catch (const std::exception& e)
|
|
|
|
|
{
|
|
|
|
|