瀏覽代碼

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@839 54d463be-8e91-2dee-dedb-b68131a5f0ec

nsstrunks 20 年之前
父節點
當前提交
4671c48d69
共有 2 個文件被更改,包括 18 次插入22 次删除
  1. 1 5
      Changelog.txt
  2. 17 17
      src/map/clif.c

+ 1 - 5
Changelog.txt

@@ -1,10 +1,6 @@
-NOTE: Something after SVN 829 screwed up clif packet processing for older
-      clients..  I am looking into it now
-
-    --mouse
-
 Date	Added
 12/28
+	* Fixed clif.c errors that prevent old clients from being used. [nsstrunks]
 	* Fixed @jobchange to not default to upper (SVN 837) [MouseJstr]
 	* Fixed a compile error in @mobsearch (SVN 836) [MouseJstr]
 12/27

+ 17 - 17
src/map/clif.c

@@ -10513,23 +10513,23 @@ int do_init_clif(void) {
 	memcpy(clif_parse_func_table[7], clif_parse_func_table[6], sizeof(clif_parse_func_table[0]));
 	// Init packet function calls for packet ver 15
 	memcpy(clif_parse_func_table[8], clif_parse_func_table[7], sizeof(clif_parse_func_table[0]));
-	clif_parse_func_table[3][0x190] = clif_parse_UseItem;
-	clif_parse_func_table[3][0x094] = clif_parse_MoveToKafra;
-	clif_parse_func_table[3][0x09f] = clif_parse_ActionRequest;
-	clif_parse_func_table[3][0x0a7] = clif_parse_WalkToXY;
-	clif_parse_func_table[3][0x07e] = clif_parse_UseSkillToPos;
-	clif_parse_func_table[3][0x116] = clif_parse_DropItem;
-	clif_parse_func_table[3][0x08c] = clif_parse_GetCharNameRequest;
-	clif_parse_func_table[3][0x085] = clif_parse_GlobalMessage;
-	clif_parse_func_table[3][0x0f7] = clif_parse_SolveCharName;
-	clif_parse_func_table[3][0x113] = clif_parse_UseSkillToPos;
-	clif_parse_func_table[3][0x0f3] = clif_parse_ChangeDir;
-	clif_parse_func_table[3][0x0f5] = clif_parse_WantToConnection;
-	clif_parse_func_table[3][0x09b] = clif_parse_CloseKafra;
-	clif_parse_func_table[3][0x0a2] = clif_parse_TakeItem;
-	clif_parse_func_table[3][0x089] = clif_parse_TickSend;
-	clif_parse_func_table[3][0x072] = clif_parse_UseSkillToId;
-	clif_parse_func_table[3][0x193] = clif_parse_MoveFromKafra;
+	clif_parse_func_table[8][0x072] = clif_parse_UseSkillToId;
+	clif_parse_func_table[8][0x07e] = clif_parse_UseSkillToPos;
+	clif_parse_func_table[8][0x089] = clif_parse_TickSend;
+	clif_parse_func_table[8][0x085] = clif_parse_GlobalMessage;
+	clif_parse_func_table[8][0x08c] = clif_parse_GetCharNameRequest;
+	clif_parse_func_table[8][0x094] = clif_parse_MoveToKafra;
+	clif_parse_func_table[8][0x09b] = clif_parse_CloseKafra;
+	clif_parse_func_table[8][0x09f] = clif_parse_ActionRequest;
+	clif_parse_func_table[8][0x0a2] = clif_parse_TakeItem;
+	clif_parse_func_table[8][0x0a7] = clif_parse_WalkToXY;
+	clif_parse_func_table[8][0x0f3] = clif_parse_ChangeDir;
+	clif_parse_func_table[8][0x0f5] = clif_parse_WantToConnection;
+	clif_parse_func_table[8][0x0f7] = clif_parse_SolveCharName;
+	clif_parse_func_table[8][0x113] = clif_parse_UseSkillToPos;
+	clif_parse_func_table[8][0x116] = clif_parse_DropItem;
+	clif_parse_func_table[8][0x190] = clif_parse_UseItem;
+	clif_parse_func_table[8][0x193] = clif_parse_MoveFromKafra;
 
 	// size of packet version 5
 	memcpy(&packet_size_table[0], &packet_len_table, sizeof(packet_len_table));