From 74fa1d0f01ee20859aaa610075038d4d931c125f Mon Sep 17 00:00:00 2001 From: David Cernat Date: Mon, 23 Jul 2018 23:04:41 +0300 Subject: [PATCH] [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() --- apps/openmw/mwworld/worldimp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index e07eac619..ec6624478 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -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