summaryrefslogtreecommitdiff
path: root/src/emap
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-05 17:59:35 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-05 17:59:35 +0300
commitab576fe0fc7a7f7de3880e9abd6b5cc068a1c0d1 (patch)
treed6a1f7bccde4a71c3b9fef8163d2d53620eecc12 /src/emap
parent7eaba97f02e18d8610ea004851ab2ec8b8edeebb (diff)
downloadevol-hercules-ab576fe0fc7a7f7de3880e9abd6b5cc068a1c0d1.tar.gz
evol-hercules-ab576fe0fc7a7f7de3880e9abd6b5cc068a1c0d1.tar.bz2
evol-hercules-ab576fe0fc7a7f7de3880e9abd6b5cc068a1c0d1.tar.xz
evol-hercules-ab576fe0fc7a7f7de3880e9abd6b5cc068a1c0d1.zip
Add workaround for allow always npc script execution after warping.
In hercules it not enabled because Gravity client have issue if warp to other map.
Diffstat (limited to 'src/emap')
-rw-r--r--src/emap/clif.c6
-rw-r--r--src/emap/clif.h2
-rw-r--r--src/emap/init.c1
3 files changed, 9 insertions, 0 deletions
diff --git a/src/emap/clif.c b/src/emap/clif.c
index 7651f09..c1aa1d4 100644
--- a/src/emap/clif.c
+++ b/src/emap/clif.c
@@ -375,3 +375,9 @@ void eclif_move(struct unit_data *ud)
if (!sd || !pc_isinvisible(sd))
send_advmoving(ud, ud->bl, AREA_WOS);
}
+
+void eclif_parse_LoadEndAck_pre(int *fdPtr __attribute__ ((unused)),
+ struct map_session_data *sd)
+{
+ sd->state.warp_clean = 0;
+}
diff --git a/src/emap/clif.h b/src/emap/clif.h
index 5fd155b..4c706cf 100644
--- a/src/emap/clif.h
+++ b/src/emap/clif.h
@@ -22,5 +22,7 @@ void eclif_set_unit_idle_post(struct block_list* bl, TBL_PC *tsd,
void eclif_set_unit_walking(struct block_list* bl, TBL_PC *tsd,
struct unit_data* ud, enum send_target *target);
void eclif_move(struct unit_data *ud);
+void eclif_parse_LoadEndAck_pre(int *fdPtr,
+ struct map_session_data *sd);
#endif // EVOL_MAP_CLIF
diff --git a/src/emap/init.c b/src/emap/init.c
index c74c441..31a7cfc 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -149,6 +149,7 @@ HPExport void plugin_init (void)
addHookPre("clif->send", eclif_send);
addHookPre("clif->set_unit_idle", eclif_set_unit_idle);
addHookPre("clif->send_actual", eclif_send_actual);
+ addHookPre("clif->pLoadEndAck", eclif_parse_LoadEndAck_pre);
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);