Skip to content

Commit

Permalink
Merge branch 'howdidabdufindthis' into 'master'
Browse files Browse the repository at this point in the history
Don't assign vertical movement for inert characters out of water (#7968)

Closes #7968

See merge request OpenMW/openmw!4432
  • Loading branch information
psi29a committed Oct 30, 2024
2 parents 27f52d2 + 84aebcc commit 34b6a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/openmw/mwmechanics/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2475,7 +2475,7 @@ namespace MWMechanics
movement = osg::Vec3f();
}

if (mFloatToSurface)
if (mFloatToSurface && world->isSwimming(mPtr))
{
if (cls.getCreatureStats(mPtr).isDead()
|| (!godmode
Expand Down

0 comments on commit 34b6a9d

Please sign in to comment.