summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorKirieZ <guilherme.menaldo@outlook.com>2017-02-06 13:29:43 -0200
committerKirieZ <guilherme.menaldo@outlook.com>2017-02-06 13:29:43 -0200
commitdaeb331d7dee30b9fa985665366527c2f09ef5a9 (patch)
tree8495b3c3fd3d3ba0875f99fa1dc0af18155a9df2 /src/map/packets_struct.h
parent000b09e9ab45ca8760428f2ab1edd89448a4bb24 (diff)
downloadhercules-daeb331d7dee30b9fa985665366527c2f09ef5a9.tar.gz
hercules-daeb331d7dee30b9fa985665366527c2f09ef5a9.tar.bz2
hercules-daeb331d7dee30b9fa985665366527c2f09ef5a9.tar.xz
hercules-daeb331d7dee30b9fa985665366527c2f09ef5a9.zip
Fixes named items having their names changed when near other players/name's owner. Fixes #1206
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index e461eebe9..4d474ac93 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -589,6 +589,9 @@ struct packet_spawn_unit {
#endif
#if PACKETVER >= 20150513
int16 body;
+#endif
+/* Might be earlier, this is when the named item bug began */
+#if PACKETVER >= 20131223
char name[NAME_LENGTH];
#endif
} __attribute__((packed));
@@ -657,6 +660,9 @@ struct packet_unit_walking {
#endif
#if PACKETVER >= 20150513
int16 body;
+#endif
+/* Might be earlier, this is when the named item bug began */
+#if PACKETVER >= 20131223
char name[NAME_LENGTH];
#endif
} __attribute__((packed));
@@ -723,6 +729,9 @@ struct packet_idle_unit {
#endif
#if PACKETVER >= 20150513
int16 body;
+#endif
+/* Might be earlier, this is when the named item bug began */
+#if PACKETVER >= 20131223
char name[NAME_LENGTH];
#endif
} __attribute__((packed));