[Client] Fix manual setting of inertial force

Actors who are on the ground have their inertial force ignored, so they are now made to not be regarded as being on the ground in World::setInertialForce()
This commit is contained in:
David Cernat 2018-07-23 23:04:41 +03:00
parent b69e6b96e6
commit 74fa1d0f01

View file

@ -1604,7 +1604,9 @@ namespace MWWorld
*/
void World::setInertialForce(const Ptr& ptr, const osg::Vec3f &force)
{
mPhysics->getActor(ptr)->setInertialForce(force);
MWPhysics::Actor *actor = mPhysics->getActor(ptr);
actor->setOnGround(false);
actor->setInertialForce(force);
}
/*
End of tes3mp addition