diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/char/char.c | 6 | ||||
-rw-r--r-- | src/char_sql/char.c | 6 | ||||
-rw-r--r-- | src/common/mmo.h | 1 |
3 files changed, 11 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c index b499faf96..237e04638 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -1772,7 +1772,7 @@ int count_users(void) // Writes char data to the buffer in the format used by the client. // Used in packets 0x6b (chars info) and 0x6d (new char info) // Returns the size -#define MAX_CHAR_BUF 132 //Max size (for WFIFOHEAD calls) +#define MAX_CHAR_BUF 136 //Max size (for WFIFOHEAD calls) int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p) { unsigned short offset = 0; @@ -1836,6 +1836,10 @@ int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p) WBUFL(buf,124) = TOL(p->delete_date); offset += 4; #endif +#if PACKETVER >= 20110111 + WBUFL(buf,128) = 0; // robe sprite id + offset += 4; +#endif return 106+offset; } diff --git a/src/char_sql/char.c b/src/char_sql/char.c index 36de40bf5..517ebed10 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -1550,7 +1550,7 @@ int count_users(void) // Writes char data to the buffer in the format used by the client. // Used in packets 0x6b (chars info) and 0x6d (new char info) // Returns the size -#define MAX_CHAR_BUF 132 //Max size (for WFIFOHEAD calls) +#define MAX_CHAR_BUF 136 //Max size (for WFIFOHEAD calls) int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p) { unsigned short offset = 0; @@ -1614,6 +1614,10 @@ int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p) WBUFL(buf,124) = TOL(p->delete_date); offset += 4; #endif +#if PACKETVER >= 20110111 + WBUFL(buf,128) = 0; // robe sprite id + offset += 4; +#endif return 106+offset; } diff --git a/src/common/mmo.h b/src/common/mmo.h index 39a5717ab..857d42581 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -39,6 +39,7 @@ // 20100721 - 2010-07-21aRagexeRE+ - 0x6b, 0x6d // 20100727 - 2010-07-27aRagexeRE+ - 0x6b, 0x6d // 20100803 - 2010-08-03aRagexeRE+ - 0x6b, 0x6d, 0x827, 0x828, 0x829, 0x82a, 0x82b, 0x82c, 0x842, 0x843 +// 20110111 - 2011-01-11aRagexeRE+ - 0x6b, 0x6d #ifndef PACKETVER #define PACKETVER 20081126 |