Enable waterCollision after moving the player above water (Fixes #3672)

This commit is contained in:
scrawl 2016-12-17 23:21:33 +01:00
parent 19143f9bc7
commit b5e8c98b40

View file

@ -1350,6 +1350,7 @@ namespace MWPhysics
{
const osg::Vec3f actorPosition = physicActor->getPosition();
physicActor->setPosition(osg::Vec3f(actorPosition.x(), actorPosition.y(), waterlevel));
waterCollision = true;
}
}
physicActor->setCanWaterWalk(waterCollision);