From 1fc7bd7775652e7641481f95dc7db8b03d151b25 Mon Sep 17 00:00:00 2001 From: elsid Date: Tue, 20 Sep 2022 00:30:05 +0200 Subject: [PATCH] Do not consider falling actors as grounded --- apps/openmw/mwphysics/actor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwphysics/actor.cpp b/apps/openmw/mwphysics/actor.cpp index 9c7d6c964e..d243415b48 100644 --- a/apps/openmw/mwphysics/actor.cpp +++ b/apps/openmw/mwphysics/actor.cpp @@ -8,6 +8,7 @@ #include #include +#include "../mwmechanics/creaturestats.hpp" #include "../mwworld/class.hpp" #include "collisiontype.hpp" @@ -30,7 +31,7 @@ namespace MWPhysics , mStuckFrames(0) , mLastStuckPosition{ 0, 0, 0 } , mForce(0.f, 0.f, 0.f) - , mOnGround(true) + , mOnGround(ptr.getClass().getCreatureStats(ptr).getFallHeight() == 0) , mOnSlope(false) , mInternalCollisionMode(true) , mExternalCollisionMode(true)