mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-13 05:56:39 +03:00
Snap down any actor teleported with Position/PositionCell (bug #6154)
This commit is contained in:
parent
4f9bcfd3f5
commit
435ddcfb6b
2 changed files with 3 additions and 2 deletions
|
@ -430,7 +430,7 @@ namespace MWScript
|
|||
rot.z() = osg::DegreesToRadians(zRot);
|
||||
MWBase::Environment::get().getWorld()->rotateObject(ptr,rot);
|
||||
|
||||
ptr.getClass().adjustPosition(ptr, false);
|
||||
ptr.getClass().adjustPosition(ptr, true);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -484,7 +484,7 @@ namespace MWScript
|
|||
zRot = zRot/60.0f;
|
||||
rot.z() = osg::DegreesToRadians(zRot);
|
||||
MWBase::Environment::get().getWorld()->rotateObject(ptr,rot);
|
||||
ptr.getClass().adjustPosition(ptr, false);
|
||||
ptr.getClass().adjustPosition(ptr, true);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue