Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This patch file was generated by NetBeans IDE
- # It uses platform neutral UTF-8 encoding and \n newlines.
- --- HEAD
- +++ Modified In Working Tree
- @@ -2007,16 +2007,19 @@
- //----------------------------------------
- int mmo_char_send006b(int fd, struct char_session_data* sd){
- int j, offset = 0;
- - bool newvers = (sd->version >= date2version(20100413));
- - if(newvers) //20100413
- +// bool newvers = (sd->version >= date2version(20100413));
- +// if(newvers) //20100413
- +#if PACKETVER > 20100413
- offset += 3;
- +#endif
- if (save_log)
- ShowInfo("Loading Char Data ("CL_BOLD"%d"CL_RESET")\n",sd->account_id);
- j = 24 + offset; // offset
- WFIFOHEAD(fd,j + MAX_CHARS*MAX_CHAR_BUF);
- WFIFOW(fd,0) = 0x6b;
- - if(newvers){ //20100413
- + //if(newvers){ //20100413
- +#if PACKETVER > 20100413
- WFIFOB(fd,4) = MAX_CHARS; // Max slots
- WFIFOB(fd,5) = MAX_CHARS - sd->chars_billing - sd->chars_vip; // PremiumStartSlot
- WFIFOB(fd,6) = MAX_CHARS - sd->chars_billing; // PremiumEndSlot
- @@ -2025,7 +2028,8 @@
- /* this+0xc unsigned long time1 */
- /* this+0x10 unsigned long time2 */
- /* this+0x14 char dummy2_endbilling[7] */
- - }
- +#endif
- + //}
- memset(WFIFOP(fd,4 + offset), 0, 20); // unknown bytes 4-24 7-27
- j+=mmo_chars_fromsql(sd, WFIFOP(fd,j));
- WFIFOW(fd,2) = j; // packet len
- @@ -2054,11 +2058,13 @@
- void mmo_char_send(int fd, struct char_session_data* sd){
- //ShowInfo("sd->version = %d\n",sd->version);
- - if(sd->version > date2version(20130000) ){
- +#if PACKETVER > 20130000
- +// if(sd->version > date2version(20130000) ){
- mmo_char_send082d(fd,sd);
- char_charlist_notify(fd,sd);
- char_block_character(fd,sd);
- - }
- +// }
- +#endif
- //else
- //@FIXME dump from kro doesn't show 6b transmission
- mmo_char_send006b(fd,sd);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement