From ebf09a72221e05de9cd60e3df806f54e29329f4c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 10 Jan 2015 20:30:41 +0300 Subject: Add support for sending group id to client. Add permission send_gm_flag. --- src/map/clif.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index a1be1f8..3c6675e 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -152,6 +152,7 @@ void eclif_authok_post(struct map_session_data *sd) return; eclif_send_additional_slots(sd, sd); + send_pc_info(sd, sd, SELF); struct MapdExt *data = mapd_get(sd->bl.m); int mask = data ? data->mask : 1; send_mapmask(sd->fd, mask); @@ -232,8 +233,10 @@ void eclif_set_unit_idle_post(struct block_list* bl, struct map_session_data *ts if (!bl || !tsd) return; - if (bl->type == BL_MOB && tsd) - send_mob_info(bl, tsd ? &tsd->bl : bl, *target); + if (bl->type == BL_MOB) + send_mob_info(bl, &tsd->bl, *target); + else if (bl->type == BL_PC) + send_pc_info(bl, &tsd->bl, *target); } void eclif_set_unit_walking(struct block_list* bl, struct map_session_data *tsd, -- cgit v1.2.3-60-g2f50