mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-24 19:11:29 +00:00
Don't assign vertical movement for inert characters out of water (#7968)
This commit is contained in:
parent
1349fdb4f2
commit
84aebccbb0
1 changed files with 1 additions and 1 deletions
|
@ -2475,7 +2475,7 @@ namespace MWMechanics
|
||||||
movement = osg::Vec3f();
|
movement = osg::Vec3f();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mFloatToSurface)
|
if (mFloatToSurface && world->isSwimming(mPtr))
|
||||||
{
|
{
|
||||||
if (cls.getCreatureStats(mPtr).isDead()
|
if (cls.getCreatureStats(mPtr).isDead()
|
||||||
|| (!godmode
|
|| (!godmode
|
||||||
|
|
Loading…
Reference in a new issue