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

pull/114/head
scrawl 8 years ago
parent 340bc2c1b0
commit 6140768783

@ -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…
Cancel
Save