浏览代码

* Fixed missing edits for cash shop support for clients 2007-07-10aSakexe and older (follow up to r14932).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14957 54d463be-8e91-2dee-dedb-b68131a5f0ec
ai4rei 13 年之前
父节点
当前提交
61395a6003
共有 3 个文件被更改,包括 6 次插入2 次删除
  1. 2 0
      Changelog-Trunk.txt
  2. 1 1
      db/packet_db.txt
  3. 3 1
      src/map/clif.c

+ 2 - 0
Changelog-Trunk.txt

@@ -1,5 +1,7 @@
 Date	Added
 
+2011/09/17
+	* Fixed missing edits for cash shop support for clients 2007-07-10aSakexe and older (follow up to r14932).
 2011/09/08
 	* Fix C++ compilation issues. [FlavioJS]
 2011/09/05

+ 1 - 1
db/packet_db.txt

@@ -910,7 +910,7 @@ packet_ver: 20
 0x0285,6
 0x0286,4
 0x0287,-1
-0x0288,6
+0x0288,6,cashshopbuy,2:4
 0x0289,8
 0x028a,18
 0x028b,-1

+ 3 - 1
src/map/clif.c

@@ -13383,13 +13383,15 @@ void clif_cashshop_ack(struct map_session_data* sd, int error)
 /// 0288 <packet len>.W <kafra points>.L <count>.W { <amount>.W <name id>.W }.4B*count (PACKETVER >= 20100803)
 void clif_parse_cashshop_buy(int fd, struct map_session_data *sd)
 {
-	int fail = 0, amount, points;
+	int fail = 0, amount, points = 0;
 	short nameid;
 	nullpo_retv(sd);
 
 	nameid = RFIFOW(fd,2);
 	amount = RFIFOW(fd,4);
+#if PACKETVER >= 20070711
 	points = RFIFOL(fd,6); // Not Implemented. Should be 0
+#endif
 
 	if( sd->state.trading || !sd->npc_shopid )
 		fail = 1;