From 7c989c92f6ca278e645066337930be6f9c5fea50 Mon Sep 17 00:00:00 2001 From: UltraNix Date: Sun, 18 Jul 2021 16:13:35 +0200 Subject: [PATCH] Fixed build for AzerothCore after recent changes. --- MapMethods.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/MapMethods.h b/MapMethods.h index e065cbf..6c6260e 100644 --- a/MapMethods.h +++ b/MapMethods.h @@ -190,12 +190,10 @@ namespace LuaMap float x = Eluna::CHECKVAL(L, 2); float y = Eluna::CHECKVAL(L, 3); float z = Eluna::CHECKVAL(L, 4); -#if defined TRINITY +#if defined TRINITY || defined AZEROTHCORE float phasemask = Eluna::CHECKVAL(L, 5, PHASEMASK_NORMAL); Eluna::Push(L, map->GetAreaId(phasemask, x, y, z)); -#elif defined AZEROTHCORE - Eluna::Push(L, map->GetAreaId(x, y, z)); #else Eluna::Push(L, map->GetTerrain()->GetAreaId(x, y, z)); #endif