summaryrefslogtreecommitdiff
path: root/src/map/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-14 13:13:06 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-14 13:13:06 +0300
commita64d627afaf3c2211de164cc25325323092db3cc (patch)
tree58f4e8d2206b825c42539307cded54b2f9ac6488 /src/map/init.c
parentfd3ff79b70accad28179fdc23049daec0bec9997 (diff)
downloadplugin-a64d627afaf3c2211de164cc25325323092db3cc.tar.gz
plugin-a64d627afaf3c2211de164cc25325323092db3cc.tar.bz2
plugin-a64d627afaf3c2211de164cc25325323092db3cc.tar.xz
plugin-a64d627afaf3c2211de164cc25325323092db3cc.zip
Add internal variable with client version.
New variable: ClientVersion
Diffstat (limited to 'src/map/init.c')
-rw-r--r--src/map/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/init.c b/src/map/init.c
index c9536e7..2381de5 100644
--- a/src/map/init.c
+++ b/src/map/init.c
@@ -17,6 +17,7 @@
#include "map/dummy.h"
#include "map/parse.h"
#include "map/script.h"
+#include "map/pc.h"
#include "../../../common/HPMDataCheck.h" /* should always be the last file included! (if you don't make it last, it'll intentionally break compile time) */
@@ -60,6 +61,7 @@ HPExport void plugin_init (void)
addScriptCommand("misceffect2", "i*", dummy);
addPacket(0x7530, 22, map_parse_version, hpClif_Parse);
+ addHookPre("pc->readparam", epc_readparam_pre);
}
HPExport void server_preinit (void)