1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00

Merge branch 'fix_teleport_rot' into 'master'

Fixed teleport function to use rotation flags

See merge request OpenMW/openmw!2998
This commit is contained in:
psi29a 2023-05-04 15:48:50 +00:00
commit a60fbf1f3d

View File

@ -87,7 +87,7 @@ namespace MWLua
if (cls.isActor())
cls.getCreatureStats(ptr).land(false);
MWWorld::Ptr newPtr = world->moveObject(ptr, destCell, pos);
world->rotateObject(newPtr, rot);
world->rotateObject(newPtr, rot, MWBase::RotationFlag_none);
if (!newPtr.getRefData().isEnabled())
world->enable(newPtr);
}