- Fixed a packet_ver error with the #defines in clif_spawn.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7145 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
abfc3def83
commit
227f21ee71
@ -1268,24 +1268,21 @@ int clif_spawn(struct block_list *bl)
|
|||||||
if (pcdb_checkid(vd->class_))
|
if (pcdb_checkid(vd->class_))
|
||||||
{ //Player spawn packet.
|
{ //Player spawn packet.
|
||||||
clif_set0078(bl, vd, buf);
|
clif_set0078(bl, vd, buf);
|
||||||
#if PACKETVER > 3
|
|
||||||
if (WBUFW(buf,0)==0x78) {
|
if (WBUFW(buf,0)==0x78) {
|
||||||
WBUFW(buf, 0) = 0x79;
|
WBUFW(buf, 0) = 0x79;
|
||||||
WBUFW(buf,51) = WBUFW(buf,52); //Lv is placed on offset 52
|
WBUFW(buf,51) = WBUFW(buf,52); //Lv is placed on offset 52
|
||||||
clif_send(buf, packet_len_table[0x79], bl, AREA_WOS);
|
clif_send(buf, packet_len_table[0x79], bl, AREA_WOS);
|
||||||
if (disguised(bl))
|
if (disguised(bl))
|
||||||
clif_setdisguise((TBL_PC*)bl, buf, packet_len_table[0x79], 0);
|
clif_setdisguise((TBL_PC*)bl, buf, packet_len_table[0x79], 0);
|
||||||
|
#if PACKETVER > 3
|
||||||
} else {
|
} else {
|
||||||
#endif
|
|
||||||
WBUFW(buf, 0) = 0x1d9;
|
WBUFW(buf, 0) = 0x1d9;
|
||||||
WBUFW(buf,51) = WBUFW(buf,52); //Lv is placed on offset 52
|
WBUFW(buf,51) = WBUFW(buf,52); //Lv is placed on offset 52
|
||||||
clif_send(buf, packet_len_table[0x1d9], bl, AREA_WOS);
|
clif_send(buf, packet_len_table[0x1d9], bl, AREA_WOS);
|
||||||
if (disguised(bl))
|
if (disguised(bl))
|
||||||
clif_setdisguise((TBL_PC*)bl, buf, packet_len_table[0x1d9], 0);
|
clif_setdisguise((TBL_PC*)bl, buf, packet_len_table[0x1d9], 0);
|
||||||
#if PACKETVER > 3
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
} else { //Mob spawn packet.
|
} else { //Mob spawn packet.
|
||||||
struct status_change *sc = status_get_sc(bl);
|
struct status_change *sc = status_get_sc(bl);
|
||||||
memset(buf,0,sizeof(buf));
|
memset(buf,0,sizeof(buf));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user