Fix TC build

This commit is contained in:
Rochet2
2018-04-06 22:51:25 +03:00
parent 807407484c
commit 25b7700b0f

View File

@@ -633,6 +633,16 @@ namespace LuaWorldObject
{ {
WorldObject* target = Eluna::CHECKOBJ<WorldObject>(L, 2, false); WorldObject* target = Eluna::CHECKOBJ<WorldObject>(L, 2, false);
#ifdef TRINITY
if (target)
Eluna::Push(L, obj->GetAbsoluteAngle(target));
else
{
float x = Eluna::CHECKVAL<float>(L, 2);
float y = Eluna::CHECKVAL<float>(L, 3);
Eluna::Push(L, obj->GetAbsoluteAngle(x, y));
}
#else
if (target) if (target)
Eluna::Push(L, obj->GetAngle(target)); Eluna::Push(L, obj->GetAngle(target));
else else
@@ -641,6 +651,7 @@ namespace LuaWorldObject
float y = Eluna::CHECKVAL<float>(L, 3); float y = Eluna::CHECKVAL<float>(L, 3);
Eluna::Push(L, obj->GetAngle(x, y)); Eluna::Push(L, obj->GetAngle(x, y));
} }
#endif
return 1; return 1;
} }