diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-20 00:09:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-20 00:09:40 +0300 |
commit | ab092915707f455e8d90a75b5f9138c6d50cf2d9 (patch) | |
tree | a553c154aaf00145b8a528bc560fc745a8ab42e8 | |
parent | f63584457f44a32e7e62587ac4802a6d31bb8408 (diff) | |
download | plugin-ab092915707f455e8d90a75b5f9138c6d50cf2d9.tar.gz plugin-ab092915707f455e8d90a75b5f9138c6d50cf2d9.tar.bz2 plugin-ab092915707f455e8d90a75b5f9138c6d50cf2d9.tar.xz plugin-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.c | 9 | ||||
-rw-r--r-- | src/emap/clif.h | 2 | ||||
-rw-r--r-- | src/emap/init.c | 1 |
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); |