diff options
author | Dastgir <dastgirpojee@rocketmail.com> | 2016-01-16 13:47:08 +0530 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-03-19 22:27:33 +0100 |
commit | f86ca8a192691c39e0726f03f0edd9e48c3a0871 (patch) | |
tree | 318c03dbe74a8c92085e4aa63bf8b15cfdfee089 /src/map | |
parent | f5ff79f1aca3e3fd1621913e275b0fc50a2cf062 (diff) | |
download | hercules-f86ca8a192691c39e0726f03f0edd9e48c3a0871.tar.gz hercules-f86ca8a192691c39e0726f03f0edd9e48c3a0871.tar.bz2 hercules-f86ca8a192691c39e0726f03f0edd9e48c3a0871.tar.xz hercules-f86ca8a192691c39e0726f03f0edd9e48c3a0871.zip |
Updated Entity Packets
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/clif.c | 3 | ||||
-rw-r--r-- | src/map/packets_struct.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index c678849b3..69d9b6779 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -1049,6 +1049,7 @@ void clif_set_unit_idle(struct block_list* bl, struct map_session_data *tsd, enu #endif #if PACKETVER >= 20150513 p.body = vd->body_style; + safestrncpy(p.name, clif->get_bl_name(bl), NAME_LENGTH); #endif clif->send(&p,sizeof(p),tsd?&tsd->bl:bl,target); @@ -1189,6 +1190,7 @@ void clif_spawn_unit(struct block_list* bl, enum send_target target) { #endif #if PACKETVER >= 20150513 p.body = vd->body_style; + safestrncpy(p.name, clif->get_bl_name(bl), NAME_LENGTH); #endif if( disguised(bl) ) { nullpo_retv(sd); @@ -1280,6 +1282,7 @@ void clif_set_unit_walking(struct block_list* bl, struct map_session_data *tsd, #endif #if PACKETVER >= 20150513 p.body = vd->body_style; + safestrncpy(p.name, clif->get_bl_name(bl), NAME_LENGTH); #endif clif->send(&p,sizeof(p),tsd?&tsd->bl:bl,target); diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index f23cefb26..e8f04c653 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -584,6 +584,7 @@ struct packet_spawn_unit { #endif #if PACKETVER >= 20150513 short body; + char name[NAME_LENGTH]; #endif } __attribute__((packed)); @@ -651,6 +652,7 @@ struct packet_unit_walking { #endif #if PACKETVER >= 20150513 short body; + char name[NAME_LENGTH]; #endif } __attribute__((packed)); @@ -716,6 +718,7 @@ struct packet_idle_unit { #endif #if PACKETVER >= 20150513 short body; + char name[NAME_LENGTH]; #endif } __attribute__((packed)); |