Don't assign vertical movement for inert characters out of water (#7968)

pull/3236/head
Alexei Kotov 2 months ago
parent 1349fdb4f2
commit 84aebccbb0

@ -2475,7 +2475,7 @@ namespace MWMechanics
movement = osg::Vec3f();
}
if (mFloatToSurface)
if (mFloatToSurface && world->isSwimming(mPtr))
{
if (cls.getCreatureStats(mPtr).isDead()
|| (!godmode

Loading…
Cancel
Save