|
|
@ -1258,10 +1258,9 @@ namespace MWWorld
|
|
|
|
auto* actor = mPhysics->getActor(ptr);
|
|
|
|
auto* actor = mPhysics->getActor(ptr);
|
|
|
|
osg::Vec3f newpos = ptr.getRefData().getPosition().asVec3() + vec;
|
|
|
|
osg::Vec3f newpos = ptr.getRefData().getPosition().asVec3() + vec;
|
|
|
|
if (actor)
|
|
|
|
if (actor)
|
|
|
|
{
|
|
|
|
|
|
|
|
actor->adjustPosition(vec);
|
|
|
|
actor->adjustPosition(vec);
|
|
|
|
|
|
|
|
if (ptr.getClass().isActor())
|
|
|
|
return moveObject(ptr, newpos.x(), newpos.y(), newpos.z(), false, moveToActive && ptr != getPlayerPtr());
|
|
|
|
return moveObject(ptr, newpos.x(), newpos.y(), newpos.z(), false, moveToActive && ptr != getPlayerPtr());
|
|
|
|
}
|
|
|
|
|
|
|
|
return moveObject(ptr, newpos.x(), newpos.y(), newpos.z());
|
|
|
|
return moveObject(ptr, newpos.x(), newpos.y(), newpos.z());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|