Merge pull request #994 from Akz-/emi-turnactor-fix

EMI: Use getWorldPos instead of getPos in TurnActorTo. Fixes #986
This commit is contained in:
Joel Teichroeb 2014-08-03 10:13:18 -07:00
commit 12f2ef5154

View File

@ -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();