mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-02 00:45:32 +00:00
Don't update the character controller while paused
This commit is contained in:
parent
d2f5a886c7
commit
daad8d9859
1 changed files with 10 additions and 8 deletions
|
@ -260,6 +260,8 @@ namespace MWMechanics
|
|||
}
|
||||
}
|
||||
|
||||
if(!paused)
|
||||
{
|
||||
std::vector<std::pair<std::string, Ogre::Vector3> > movement;
|
||||
for(PtrControllerMap::iterator iter(mActors.begin());iter != mActors.end();++iter)
|
||||
{
|
||||
|
@ -268,9 +270,9 @@ namespace MWMechanics
|
|||
if(vector!=Ogre::Vector3::ZERO)
|
||||
movement.push_back(std::make_pair(iter->first.getRefData().getHandle(), vector));
|
||||
}
|
||||
if (!paused)
|
||||
MWBase::Environment::get().getWorld()->doPhysics (movement, duration);
|
||||
}
|
||||
}
|
||||
|
||||
void Actors::restoreDynamicStats()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue