forked from mirror/openmw-tes3mp
Enable waterCollision after moving the player above water (Fixes #3672)
This commit is contained in:
parent
19143f9bc7
commit
b5e8c98b40
1 changed files with 2 additions and 1 deletions
|
@ -1349,7 +1349,8 @@ namespace MWPhysics
|
|||
else if (physicActor->getCollisionMode() && canMoveToWaterSurface(iter->first, waterlevel))
|
||||
{
|
||||
const osg::Vec3f actorPosition = physicActor->getPosition();
|
||||
physicActor->setPosition(osg::Vec3f(actorPosition.x(), actorPosition.y(), waterlevel));
|
||||
physicActor->setPosition(osg::Vec3f(actorPosition.x(), actorPosition.y(), waterlevel));
|
||||
waterCollision = true;
|
||||
}
|
||||
}
|
||||
physicActor->setCanWaterWalk(waterCollision);
|
||||
|
|
Loading…
Reference in a new issue