From 84aebccbb0eb474b90bcca8f8919187652f222db Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Tue, 29 Oct 2024 14:33:05 +0300 Subject: [PATCH] Don't assign vertical movement for inert characters out of water (#7968) --- apps/openmw/mwmechanics/character.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/character.cpp b/apps/openmw/mwmechanics/character.cpp index dbd00cd7ff..ed4eb9e0ec 100644 --- a/apps/openmw/mwmechanics/character.cpp +++ b/apps/openmw/mwmechanics/character.cpp @@ -2475,7 +2475,7 @@ namespace MWMechanics movement = osg::Vec3f(); } - if (mFloatToSurface) + if (mFloatToSurface && world->isSwimming(mPtr)) { if (cls.getCreatureStats(mPtr).isDead() || (!godmode