Eluna change definition checks from mangos to tc

This commit is contained in:
Rochet2
2014-06-29 12:26:16 +03:00
committed by Foereaper
parent c2a3ea5043
commit 1f75dc7843
20 changed files with 181 additions and 181 deletions

View File

@@ -20,7 +20,7 @@ namespace LuaMap
int IsBattleground(lua_State* L, Map* map)
{
#ifdef MANGOS
#ifndef TRINITY
Eluna::Push(L, map->IsBattleGround());
#else
Eluna::Push(L, map->IsBattleground());
@@ -110,7 +110,7 @@ namespace LuaMap
float y = Eluna::CHECKVAL<float>(L, 3);
float z = Eluna::CHECKVAL<float>(L, 4);
#ifdef MANGOS
#ifndef TRINITY
Eluna::Push(L, map->GetTerrain()->GetAreaId(x, y, z));
#else
Eluna::Push(L, map->GetAreaId(x, y, z));
@@ -122,7 +122,7 @@ namespace LuaMap
{
uint64 guid = Eluna::CHECKVAL<uint64>(L, 2);
#ifdef MANGOS
#ifndef TRINITY
Eluna::Push(L, map->GetWorldObject(ObjectGuid(guid)));
#else
switch (GUID_HIPART(guid))