1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 12:53:51 +00:00

Merge branch 'float' into 'master'

Allow all creatures to float to the water surface (#5790, #5758)

Closes #5758 and #5790

See merge request OpenMW/openmw!534
This commit is contained in:
psi29a 2021-01-12 18:45:10 +00:00
commit abdc4cde95

View file

@ -2448,7 +2448,7 @@ void CharacterController::update(float duration)
} }
} }
if (mFloatToSurface && cls.isActor() && cls.canSwim(mPtr)) if (mFloatToSurface && cls.isActor())
{ {
if (cls.getCreatureStats(mPtr).isDead() if (cls.getCreatureStats(mPtr).isDead()
|| (!godmode && cls.getCreatureStats(mPtr).isParalyzed())) || (!godmode && cls.getCreatureStats(mPtr).isParalyzed()))