From 3e8a083fbfc8127b2222f34f6a599c93038fe1d9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 May 2019 01:21:40 +0300 Subject: Fix compilation errors after hercules update --- src/elogin/init.c | 7 +------ src/emap/init.c | 1 + src/emap/script_buildins.c | 1 + 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/elogin/init.c b/src/elogin/init.c index 5f17a46..52a95bf 100644 --- a/src/elogin/init.c +++ b/src/elogin/init.c @@ -35,11 +35,6 @@ HPExport struct hplugin_info pinfo = HPM_VERSION }; -#define addHookPrePriv(ifname, type, funcname, hook) ( \ - (void)((HPMHOOK_pre_ ## type ## _ ## funcname)0 == (hook)), \ - HPMi->hooking->AddHook(HOOK_TYPE_PRE, #ifname "->" #funcname, (hook), HPMi->pid) \ - ) - HPExport void plugin_init (void) { interfaces_init_common(); @@ -53,7 +48,7 @@ HPExport void plugin_init (void) addHookPre(login, client_login, elogin_client_login_pre); addHookPre(login, check_password, elogin_check_password_pre); - addHookPrePriv(lclif->p, PRIV__lclif, parse_CA_CONNECT_INFO_CHANGED, elogin_parse_ping_pre); + addHookPrePriv(lclif, parse_CA_CONNECT_INFO_CHANGED, elogin_parse_ping_pre); addHookPost(login, client_login, elogin_client_login_post); } diff --git a/src/emap/init.c b/src/emap/init.c index 3c40f30..dfc1241 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -40,6 +40,7 @@ #include "map/party.h" #include "map/pet.h" #include "map/pc.h" +#include "map/refine.h" #include "map/script.h" #include "map/storage.h" #include "map/trade.h" diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c index 93e9388..5135874 100644 --- a/src/emap/script_buildins.c +++ b/src/emap/script_buildins.c @@ -17,6 +17,7 @@ #include "map/instance.h" #include "map/npc.h" #include "map/pc.h" +#include "map/refine.h" #include "map/script.h" #include "map/quest.h" -- cgit v1.2.3-70-g09d2