summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-10 20:30:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-10 20:33:26 +0300
commitebf09a72221e05de9cd60e3df806f54e29329f4c (patch)
tree5e146cc81c971d40586cf8d464844679d078c6da /src/map/clif.c
parented39e0835a4afc21335bac2ab3cb8c974c371da0 (diff)
downloadevol-hercules-ebf09a72221e05de9cd60e3df806f54e29329f4c.tar.gz
evol-hercules-ebf09a72221e05de9cd60e3df806f54e29329f4c.tar.bz2
evol-hercules-ebf09a72221e05de9cd60e3df806f54e29329f4c.tar.xz
evol-hercules-ebf09a72221e05de9cd60e3df806f54e29329f4c.zip
Add support for sending group id to client.
Add permission send_gm_flag.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c7
1 files changed, 5 insertions, 2 deletions
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,