summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-09-03 05:42:43 +0200
committerHaru <haru@dotalux.com>2013-09-03 19:46:44 +0200
commitdf0a324108cd8b6ee7ac984700efed80044ed7c3 (patch)
treedf98a2e51a2a86df68b5dc9c1fffef253a150187 /src/map/packets_struct.h
parent51b7f5c6f6af53c3fc6a71ede9aea6b760a91491 (diff)
downloadhercules-df0a324108cd8b6ee7ac984700efed80044ed7c3.tar.gz
hercules-df0a324108cd8b6ee7ac984700efed80044ed7c3.tar.bz2
hercules-df0a324108cd8b6ee7ac984700efed80044ed7c3.tar.xz
hercules-df0a324108cd8b6ee7ac984700efed80044ed7c3.zip
Fixed several packet errors with pre-renewal clients from 2006-2008
Thanks to Beret for reporting the issues, Ind for his great help with research, suggestions and the necessary tools to fix this. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index 053cd96b8..0e04756ec 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -180,7 +180,9 @@ struct packet_dropflooritem {
#if PACKETVER < 20091103
struct packet_idle_unit2 {
short PacketType;
+#if PACKETVER >= 20071106
unsigned char objecttype;
+#endif
unsigned int GID;
short speed;
short bodyState;
@@ -210,7 +212,9 @@ struct packet_idle_unit2 {
} __attribute__((packed));
struct packet_spawn_unit2 {
short PacketType;
+#if PACKETVER >= 20071106
unsigned char objecttype;
+#endif
unsigned int GID;
short speed;
short bodyState;
@@ -297,7 +301,7 @@ struct packet_unit_walking {
#if PACKETVER >= 20091103
short PacketLength;
#endif
-#if PACKETVER > 7
+#if PACKETVER > 20071106
unsigned char objecttype;
#endif
unsigned int GID;