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

pull/120/head
scrawl 8 years ago
parent 19143f9bc7
commit b5e8c98b40

@ -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);

Loading…
Cancel
Save