1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-28 21:39:48 +00:00

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

This commit is contained in:
Alexei Kotov 2024-10-29 14:33:05 +03:00
parent 1349fdb4f2
commit 84aebccbb0

View file

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