1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-08 23:16:39 +00:00

Allow all creatures to float to the water surface

This commit is contained in:
Alexei Dobrohotov 2021-01-12 15:46:19 +03:00
parent 654238fd18
commit 4638fc36b4

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()))