summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-05-14 01:21:40 +0300
committerAndrei Karas <akaras@inbox.ru>2019-05-14 01:21:40 +0300
commit3e8a083fbfc8127b2222f34f6a599c93038fe1d9 (patch)
tree88d036402203dc758a14b45a62ff0e3a52d7b166
parent0cb065dca4f0793f601e807069c725cee4b459f1 (diff)
downloadevol-hercules-3e8a083fbfc8127b2222f34f6a599c93038fe1d9.tar.gz
evol-hercules-3e8a083fbfc8127b2222f34f6a599c93038fe1d9.tar.bz2
evol-hercules-3e8a083fbfc8127b2222f34f6a599c93038fe1d9.tar.xz
evol-hercules-3e8a083fbfc8127b2222f34f6a599c93038fe1d9.zip
Fix compilation errors after hercules update
-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"