forked from mirror/openmw-tes3mp
Skip stepping if movement tracer hits actor.
This commit is contained in:
parent
a5360483bb
commit
dbf0fa6766
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue