diff options
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/char.c | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/src/char/char.c b/src/char/char.c index ce0d067a7..109f74c36 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -1059,13 +1059,6 @@ int mmo_chars_fromsql(struct char_session_data* sd, uint8* buf) j += mmo_char_tobuf(WBUFP(buf, j), &p); } -#if PACKETVER >= 20130000 - /* for some reason the client doesn't like "3" characters (yes...3) we gotta send a fake one or it wont display any =_= */ - if( j == 432 ){/* we just duplicate the last visually the client will say 4 chars instead of 3 though >_> */ - j += mmo_char_tobuf(WBUFP(buf, j), &p); - } -#endif - memset(sd->new_name,0,sizeof(sd->new_name)); SqlStmt_Free(stmt); @@ -1888,7 +1881,7 @@ int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p) return 106+offset; } - + int mmo_char_send006b(int fd, struct char_session_data* sd); //---------------------------------------- // [Ind/Hercules] notify client about charselect window data //---------------------------------------- @@ -1906,10 +1899,7 @@ void mmo_char_send082d(int fd, struct char_session_data* sd) { WFIFOB(fd,8) = sd->char_slots; memset(WFIFOP(fd,9), 0, 20); // unused bytes WFIFOSET(fd,29); - WFIFOHEAD(fd, 6); - WFIFOW(fd,0) = 0x9a0; - WFIFOL(fd,2) = 1; - WFIFOSET(fd, 6); + mmo_char_send006b(fd,sd); } //---------------------------------------- @@ -4342,20 +4332,6 @@ int parse_char(int fd) RFIFOSKIP(fd, 8); } break; - - /* [Ind/Hercules] after hours reading over and over Shakto's network report, finally found this little ***hole */ - case 0x9a1: - FIFOSD_CHECK(2); - { - int j = 4; - RFIFOSKIP(fd, 2); - WFIFOHEAD(fd,j + (MAX_CHARS*MAX_CHAR_BUF)); - WFIFOW(fd,0) = 0x99d; - j+=mmo_chars_fromsql(sd, WFIFOP(fd,j)); - WFIFOW(fd,2) = j; - WFIFOSET(fd,j); - } - break; // unknown packet received default: |