summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-20 00:09:40 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-20 00:09:40 +0300
commitab092915707f455e8d90a75b5f9138c6d50cf2d9 (patch)
treea553c154aaf00145b8a528bc560fc745a8ab42e8
parentf63584457f44a32e7e62587ac4802a6d31bb8408 (diff)
downloadevol-hercules-ab092915707f455e8d90a75b5f9138c6d50cf2d9.tar.gz
evol-hercules-ab092915707f455e8d90a75b5f9138c6d50cf2d9.tar.bz2
evol-hercules-ab092915707f455e8d90a75b5f9138c6d50cf2d9.tar.xz
evol-hercules-ab092915707f455e8d90a75b5f9138c6d50cf2d9.zip
Send party settings packet after party info packet.s20160820
This allow always know party settings without changing it.
-rw-r--r--src/emap/clif.c9
-rw-r--r--src/emap/clif.h2
-rw-r--r--src/emap/init.c1
3 files changed, 12 insertions, 0 deletions
diff --git a/src/emap/clif.c b/src/emap/clif.c
index d211a83..63b7cc0 100644
--- a/src/emap/clif.c
+++ b/src/emap/clif.c
@@ -1730,3 +1730,12 @@ void eclif_parse_WalkToXY(int fd,
unit->walktoxy(&sd->bl, x, y, 4);
}
}
+
+void eclif_party_info_post(struct party_data *p,
+ struct map_session_data *sd)
+{
+ if (sd)
+ {
+ clif->party_option(p, sd, 2);
+ }
+}
diff --git a/src/emap/clif.h b/src/emap/clif.h
index 5786e52..4838dc6 100644
--- a/src/emap/clif.h
+++ b/src/emap/clif.h
@@ -101,4 +101,6 @@ void eclif_skillinfo_pre(struct map_session_data **sdPtr,
int *infPtr);
void eclif_parse_WalkToXY(int fd,
struct map_session_data *sd) __attribute__((nonnull (2)));
+void eclif_party_info_post(struct party_data *p,
+ struct map_session_data *sd);
#endif // EVOL_MAP_CLIF
diff --git a/src/emap/init.c b/src/emap/init.c
index 8f8c986..93d027c 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -281,6 +281,7 @@ HPExport void plugin_init (void)
addHookPost(clif, damage, eclif_damage_post);
addHookPost(clif, set_unit_walking, eclif_set_unit_walking_post);
addHookPost(clif, move, eclif_move_post);
+ addHookPost(clif, party_info, eclif_party_info_post);
addHookPost(status, init, estatus_init_post);
addHookPost(status, set_viewdata, estatus_set_viewdata_post);
addHookPost(status, read_job_db_sub, estatus_read_job_db_sub_post);