summaryrefslogtreecommitdiff
path: root/src/map/clif.c
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/clif.c
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/clif.c')
-rw-r--r--src/map/clif.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index fad10be92..306a83082 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -873,7 +873,9 @@ void clif_set_unit_idle2(struct block_list* bl, struct map_session_data *tsd, en
sd = BL_CAST(BL_PC, bl);
p.PacketType = idle_unit2Type;
+#if PACKETVER >= 20071106
p.objecttype = clif_bl_type(bl);
+#endif
p.GID = bl->id;
p.speed = iStatus->get_speed(bl);
p.bodyState = (sc) ? sc->opt1 : 0;
@@ -1005,7 +1007,9 @@ void clif_spawn_unit2(struct block_list* bl, enum send_target target) {
sd = BL_CAST(BL_PC, bl);
p.PacketType = spawn_unit2Type;
+#if PACKETVER >= 20071106
p.objecttype = clif_bl_type(bl);
+#endif
p.GID = bl->id;
p.speed = iStatus->get_speed(bl);
p.bodyState = (sc) ? sc->opt1 : 0;
@@ -1133,7 +1137,7 @@ void clif_set_unit_walking(struct block_list* bl, struct map_session_data *tsd,
#if PACKETVER >= 20091103
p.PacketLength = sizeof(p);
#endif
-#if PACKETVER > 7
+#if PACKETVER >= 20071106
p.objecttype = clif_bl_type(bl);
#endif
p.GID = bl->id;