Advertisement
Guest User

revert_char_multiclient_support

a guest
Nov 19th, 2013
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.75 KB | None | 0 0
  1. # This patch file was generated by NetBeans IDE
  2. # It uses platform neutral UTF-8 encoding and \n newlines.
  3. --- HEAD
  4. +++ Modified In Working Tree
  5. @@ -2007,16 +2007,19 @@
  6.  //----------------------------------------
  7.  int mmo_char_send006b(int fd, struct char_session_data* sd){
  8.     int j, offset = 0;
  9. -   bool newvers = (sd->version >= date2version(20100413));
  10. -   if(newvers) //20100413
  11. +// bool newvers = (sd->version >= date2version(20100413));
  12. +// if(newvers) //20100413
  13. +#if PACKETVER > 20100413
  14.         offset += 3;
  15. +#endif
  16.     if (save_log)
  17.         ShowInfo("Loading Char Data ("CL_BOLD"%d"CL_RESET")\n",sd->account_id);
  18.  
  19.     j = 24 + offset; // offset
  20.     WFIFOHEAD(fd,j + MAX_CHARS*MAX_CHAR_BUF);
  21.     WFIFOW(fd,0) = 0x6b;
  22. -   if(newvers){ //20100413
  23. +   //if(newvers){ //20100413
  24. +#if PACKETVER > 20100413
  25.         WFIFOB(fd,4) = MAX_CHARS; // Max slots
  26.         WFIFOB(fd,5) = MAX_CHARS - sd->chars_billing - sd->chars_vip; // PremiumStartSlot
  27.         WFIFOB(fd,6) = MAX_CHARS - sd->chars_billing; // PremiumEndSlot
  28. @@ -2025,7 +2028,8 @@
  29.         /* this+0xc  unsigned long time1 */
  30.         /* this+0x10  unsigned long time2 */
  31.         /* this+0x14  char dummy2_endbilling[7] */
  32. -   }
  33. +#endif
  34. +   //}
  35.     memset(WFIFOP(fd,4 + offset), 0, 20); // unknown bytes 4-24 7-27
  36.     j+=mmo_chars_fromsql(sd, WFIFOP(fd,j));
  37.     WFIFOW(fd,2) = j; // packet len
  38. @@ -2054,11 +2058,13 @@
  39.  
  40.  void mmo_char_send(int fd, struct char_session_data* sd){
  41.     //ShowInfo("sd->version = %d\n",sd->version);
  42. -   if(sd->version > date2version(20130000) ){
  43. +#if PACKETVER > 20130000
  44. +// if(sd->version > date2version(20130000) ){
  45.         mmo_char_send082d(fd,sd);
  46.         char_charlist_notify(fd,sd);
  47.         char_block_character(fd,sd);
  48. -   }
  49. +// }
  50. +#endif
  51.     //else
  52.     //@FIXME dump from kro doesn't show 6b transmission
  53.     mmo_char_send006b(fd,sd);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement