1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-29 22:20:33 +00:00

Fixed teleport function to use rotation flags

This commit is contained in:
Tobias Tribble 2023-05-03 18:29:50 -05:00
parent cdc753df70
commit 43544e7d30

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);
}