From 25b7700b0f0ba710e19dbbfb6276f1e170ed4dc4 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Fri, 6 Apr 2018 22:51:25 +0300 Subject: [PATCH] Fix TC build --- WorldObjectMethods.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/WorldObjectMethods.h b/WorldObjectMethods.h index 5a6b0e5..b034585 100644 --- a/WorldObjectMethods.h +++ b/WorldObjectMethods.h @@ -633,6 +633,16 @@ namespace LuaWorldObject { WorldObject* target = Eluna::CHECKOBJ(L, 2, false); +#ifdef TRINITY + if (target) + Eluna::Push(L, obj->GetAbsoluteAngle(target)); + else + { + float x = Eluna::CHECKVAL(L, 2); + float y = Eluna::CHECKVAL(L, 3); + Eluna::Push(L, obj->GetAbsoluteAngle(x, y)); + } +#else if (target) Eluna::Push(L, obj->GetAngle(target)); else @@ -641,6 +651,7 @@ namespace LuaWorldObject float y = Eluna::CHECKVAL(L, 3); Eluna::Push(L, obj->GetAngle(x, y)); } +#endif return 1; }