diff options
author | Haru <haru@dotalux.com> | 2013-09-04 20:04:57 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-09-04 20:04:57 +0200 |
commit | 272ff4508a45341d683df71b22898851fa49e7b2 (patch) | |
tree | eb82fe2a845d6251272d82f0f8693367831e7f51 /src | |
parent | da3b014f7fb44d36aae0c1a2b18cb07329d18b36 (diff) | |
download | hercules-272ff4508a45341d683df71b22898851fa49e7b2.tar.gz hercules-272ff4508a45341d683df71b22898851fa49e7b2.tar.bz2 hercules-272ff4508a45341d683df71b22898851fa49e7b2.tar.xz hercules-272ff4508a45341d683df71b22898851fa49e7b2.zip |
Fixed more packet issues with 2006-2008 clients
- Fixes bugreport:2007 comment 5
http://hercules.ws/board/tracker/issue-7653-not-compatible-with-hexed-2007/?gopid=20302#entry20302
- Follow-up to df0a324
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 1 | ||||
-rw-r--r-- | src/map/packets_struct.h | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index ee7d085a6..d57d73c09 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -1036,7 +1036,6 @@ void clif_spawn_unit2(struct block_list* bl, enum send_target target) { p.sex = vd->sex; WBUFPOS(&p.PosDir[0],0,bl->x,bl->y,unit_getdir(bl)); p.xSize = p.ySize = (sd) ? 5 : 0; - p.clevel = clif_setlevel(bl); clif->send(&p,sizeof(p),bl,target); } diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 0e04756ec..2bfb10ca3 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -235,7 +235,6 @@ struct packet_spawn_unit2 { unsigned char PosDir[3]; unsigned char xSize; unsigned char ySize; - short clevel; } __attribute__((packed)); #endif struct packet_spawn_unit { @@ -308,7 +307,7 @@ struct packet_unit_walking { short speed; short bodyState; short healthState; -#if PACKETVER < 20080102 +#if PACKETVER < 7 short effectState; #else int effectState; |