summaryrefslogtreecommitdiff
path: root/src/map/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-21 19:19:15 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-21 19:19:15 +0300
commitec431e54185f525e7006cae9f7e1a6fe9ced39b5 (patch)
treee5bd4f5cfd3207b628a3bb1d8d53579db470bacd /src/map/init.c
parent5931a58658c9c5a486dacaf4d1515d4f736da19f (diff)
downloadevol-hercules-ec431e54185f525e7006cae9f7e1a6fe9ced39b5.tar.gz
evol-hercules-ec431e54185f525e7006cae9f7e1a6fe9ced39b5.tar.bz2
evol-hercules-ec431e54185f525e7006cae9f7e1a6fe9ced39b5.tar.xz
evol-hercules-ec431e54185f525e7006cae9f7e1a6fe9ced39b5.zip
Fix heavy CPU usage while walking.
After this commit and some changes in configuration it allow spawn more than 7k mobs in small area with small CPU usage.
Diffstat (limited to 'src/map/init.c')
-rw-r--r--src/map/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/init.c b/src/map/init.c
index 810089d..3c736f9 100644
--- a/src/map/init.c
+++ b/src/map/init.c
@@ -133,6 +133,7 @@ HPExport void plugin_init (void)
addHookPre("itemdb->is_item_usable", eitemdb_is_item_usable);
addHookPre("itemdb->readdb_additional_fields", eitemdb_readdb_additional_fields);
addHookPre("unit->can_move", eunit_can_move);
+ addHookPre("unit->walktoxy", eunit_walktoxy);
addHookPost("clif->getareachar_unit", eclif_getareachar_unit_post);
addHookPost("clif->authok", eclif_authok_post);