diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-06 07:25:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-15 20:36:19 +0300 |
commit | c519bdf342478ed539445fca6c909d7f35c7ec83 (patch) | |
tree | cc0f6a815b1ce146120edd04f60faab488d783fd /src/map | |
parent | 62e26cfe0e2e710bc469036ffb9c2b8bb0e3d225 (diff) | |
download | hercules-c519bdf342478ed539445fca6c909d7f35c7ec83.tar.gz hercules-c519bdf342478ed539445fca6c909d7f35c7ec83.tar.bz2 hercules-c519bdf342478ed539445fca6c909d7f35c7ec83.tar.xz hercules-c519bdf342478ed539445fca6c909d7f35c7ec83.zip |
Update packet spawn_unit.
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/clif.c | 2 | ||||
-rw-r--r-- | src/map/packets_struct.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 6cc8a4977..74bda42fb 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -1260,7 +1260,7 @@ static void clif_spawn_unit(struct block_list *bl, enum send_target target) p.head = vd->hair_style; p.weapon = vd->weapon; p.accessory = vd->head_bottom; -#if PACKETVER < 7 +#if PACKETVER < 7 || PACKETVER_RE_NUM >= 20180704 p.shield = vd->shield; #endif p.accessory2 = vd->head_top; diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index d962795ab..1b36fc8b1 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -662,6 +662,9 @@ struct packet_spawn_unit { #else int32 weapon; #endif +#if PACKETVER_RE_NUM >= 20180704 + int32 shield; +#endif int16 accessory; #if PACKETVER < 7 int16 shield; |