Преглед на файлове

- Fixed autotrading characters not being able to reconnect. Seams like I misunderstood how id_db and pc_db are used.
Ref: http://www.eathena.ws/board/index.php?showtopic=131873

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

FlavioJS преди 18 години
родител
ревизия
dde66aee4e
променени са 2 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 3 0
      Changelog-Trunk.txt
  2. 2 1
      src/map/clif.c

+ 3 - 0
Changelog-Trunk.txt

@@ -3,6 +3,9 @@ Date	Added
 AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
+2007/01/12
+	* Fixed autotrading characters not being able to reconnect. Seams like I 
+	  misunderstood how id_db and pc_db are used. [FlavioJS]
 2007/01/11
 	* Fixed the script engine not parsing strings in multibyte charsets 
 	  correctly (should have been done in r9532).

+ 2 - 1
src/map/clif.c

@@ -8200,8 +8200,9 @@ void clif_parse_WantToConnection(int fd, TBL_PC* sd)
 	} else
 	{// packet version accepted
 		TBL_PC* old_sd;
+		struct block_list* bl;
 
-		if( map_id2bl(account_id) != NULL )
+		if( (bl=map_id2bl(account_id)) != NULL && bl->type != BL_PC )
 		{// non-player object already has that id
 			ShowError("clif_parse_WantToConnection: a non-player object already has id %d, please increase the starting account number\n", account_id);
 			WFIFOHEAD(fd,packet_len(0x6a));