浏览代码

Fixed wrong char info packet size for clients after 2010-07-27 (follow-up to r14368).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14432 54d463be-8e91-2dee-dedb-b68131a5f0ec
Gepard 14 年之前
父节点
当前提交
99d0eef42f
共有 3 个文件被更改,包括 4 次插入2 次删除
  1. 2 0
      Changelog-Trunk.txt
  2. 1 1
      src/char/char.c
  3. 1 1
      src/char_sql/char.c

+ 2 - 0
Changelog-Trunk.txt

@@ -1,5 +1,7 @@
 Date	Added
 
+2010/10/17
+	* Fixed wrong char info packet size for clients after 2010-07-27. (bugreport:4413) [Gepard]
 2010/10/13
 	* Prevented direct transformation into dummy jobs via @jobchange command. (bugreport:4227) [Paradox924X]
 	* Prevented @stpoint and @skpoint from causing overflows. [Paradox924X]

+ 1 - 1
src/char/char.c

@@ -1736,7 +1736,7 @@ int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p)
 	WBUFW(buf,106) = ( p->rename > 0 ) ? 0 : 1;
 	offset += 2;
 #endif
-#if PACKETVER >= 20100721
+#if PACKETVER >= 20100720 && PACKETVER <= 20100727
 	mapindex_getmapname_ext(mapindex_id2name(p->last_point.map), (char*)WBUFP(buf,108));
 	offset += 16;
 #endif

+ 1 - 1
src/char_sql/char.c

@@ -1596,7 +1596,7 @@ int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p)
 	WBUFW(buf,106) = ( p->rename > 0 ) ? 0 : 1;
 	offset+=2;
 #endif
-#if PACKETVER >= 20100721
+#if PACKETVER >= 20100720 && PACKETVER <= 20100727
 	mapindex_getmapname_ext(mapindex_id2name(p->last_point.map), (char*)WBUFP(buf,108));
 	offset += 16;
 #endif