mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-04 12:49:41 +00:00
Merge branch 'seventh_time_is_the_charm' into 'master'
Unbreak again NPC teleport See merge request OpenMW/openmw!760
This commit is contained in:
commit
b29e797b27
1 changed files with 1 additions and 2 deletions
|
@ -1258,10 +1258,9 @@ namespace MWWorld
|
|||
auto* actor = mPhysics->getActor(ptr);
|
||||
osg::Vec3f newpos = ptr.getRefData().getPosition().asVec3() + vec;
|
||||
if (actor)
|
||||
{
|
||||
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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue