summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/elogin/init.c7
-rw-r--r--src/emap/init.c1
-rw-r--r--src/emap/script_buildins.c1
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"