فهرست منبع

- Sorry, fixing the last adoption step. It was too late ._.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12392 54d463be-8e91-2dee-dedb-b68131a5f0ec
zephyrus 17 سال پیش
والد
کامیت
53c26b43fb
1فایلهای تغییر یافته به همراه3 افزوده شده و 6 حذف شده
  1. 3 6
      src/map/clif.c

+ 3 - 6
src/map/clif.c

@@ -12067,13 +12067,10 @@ void clif_parse_Adopt_reply(int fd, struct map_session_data *sd)
 
 	sd->adopt_invite = 0;
 
-	if( pid != p1_sd->status.account_id )
-		return; // Not the same sender
+	if( pid != p1_sd->status.account_id || !result )
+		return; // Not the same sender | Reply No
 
-	if( pc_can_Adopt(p1_sd, p2_sd, sd) )
-	{
-		// Lets do the adoption!!
-	}
+	pc_adoption(p1_sd, p2_sd, sd);
 }
 
 /*==========================================