mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-08 10:51:11 +00:00
Merge pull request #994 from Akz-/emi-turnactor-fix
EMI: Use getWorldPos instead of getPos in TurnActorTo. Fixes #986
This commit is contained in:
commit
12f2ef5154
@ -1172,7 +1172,7 @@ void Lua_V1::TurnActorTo() {
|
||||
|
||||
if (lua_isuserdata(xObj) && lua_tag(xObj) == MKTAG('A','C','T','R')) {
|
||||
Actor *destActor = getactor(xObj);
|
||||
const Math::Vector3d &pos = destActor->getPos();
|
||||
const Math::Vector3d &pos = destActor->getWorldPos();
|
||||
x = pos.x();
|
||||
y = pos.y();
|
||||
z = pos.z();
|
||||
|
Loading…
Reference in New Issue
Block a user