1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-04 18:49:41 +00:00

Resolve #5895 by setting the initial mOnGround state to false; we do this because the movement solver runs one frame behind so when we run through the loop the first time we assume we are on the ground even though we may be 400 units in the air.

This commit is contained in:
Bret Curtis 2021-03-13 15:24:45 +01:00
parent 3736cd45cd
commit 19ad7d7f0c

View file

@ -72,6 +72,7 @@ Actor::Actor(const MWWorld::Ptr& ptr, const Resource::BulletShape* shape, Physic
updatePosition();
addCollisionMask(getCollisionMask());
updateCollisionObjectPosition();
mOnGround.store(false, std::memory_order_release);
}
Actor::~Actor()