mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
call moveObject() after applying waterwalking
This unbreak abot's boat mods: they're continually teleporting the boats (who is an actor with waterwalking effect). As such, the physics simulation was never run and the boat never went to sea level.
This commit is contained in:
parent
fd5429ae56
commit
ebb564ad22
1 changed files with 1 additions and 1 deletions
|
@ -935,7 +935,7 @@ namespace MWPhysics
|
|||
if (mMoveToWaterSurface)
|
||||
{
|
||||
mPosition.z() = mWaterlevel;
|
||||
mActorRaw->setPosition(mPosition);
|
||||
MWBase::Environment::get().getWorld()->moveObject(mActorRaw->getPtr(), mPosition.x(), mPosition.y(), mPosition.z());
|
||||
}
|
||||
mOldHeight = mPosition.z();
|
||||
mRefpos = mActorRaw->getPtr().getRefData().getPosition();
|
||||
|
|
Loading…
Reference in a new issue