From dbf0fa6766f580556cb69503f1ee6f60057790e7 Mon Sep 17 00:00:00 2001 From: logzero Date: Sat, 31 Dec 2016 10:57:06 +0100 Subject: [PATCH] Skip stepping if movement tracer hits actor. --- apps/openmw/mwphysics/physicssystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwphysics/physicssystem.cpp b/apps/openmw/mwphysics/physicssystem.cpp index db72ac636..87a7ab3e5 100644 --- a/apps/openmw/mwphysics/physicssystem.cpp +++ b/apps/openmw/mwphysics/physicssystem.cpp @@ -407,7 +407,7 @@ namespace MWPhysics float hitHeight = tracer.mHitPoint.z() - tracer.mEndPos.z() + halfExtents.z(); osg::Vec3f oldPosition = newPosition; bool result = false; - if (hitHeight < sStepSizeUp) + if (hitHeight < sStepSizeUp && !isActor(tracer.mHitObject)) { // Try to step up onto it. // NOTE: stepMove does not allow stepping over, modifies newPosition if successful