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:
commit
a60fbf1f3d
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user