Browse Source

- Fixed an error on the error-message when job_db1 doesn't has enough columns.
- Fixed undisguising not clearing the mob sprite for the disguised character.


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

skotlex 19 years ago
parent
commit
3c79b79483
3 changed files with 7 additions and 4 deletions
  1. 2 0
      Changelog-Trunk.txt
  2. 4 3
      src/map/pc.c
  3. 1 1
      src/map/status.c

+ 2 - 0
Changelog-Trunk.txt

@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 
 2006/04/05
 2006/04/05
+	* Fixed undisguising not clearing the mob sprite for the disguised
+	  character. [Skotlex]
 	* Fixed parsing of job_db1.txt due to the MAX_WEAPON_TYPE change. [Skotlex]
 	* Fixed parsing of job_db1.txt due to the MAX_WEAPON_TYPE change. [Skotlex]
 	* TK ranking kicks can't be used on sucession now (can't use any of the
 	* TK ranking kicks can't be used on sucession now (can't use any of the
 	  kick skills twice in a row without using a different one first). [Skotlex]
 	  kick skills twice in a row without using a different one first). [Skotlex]

+ 4 - 3
src/map/pc.c

@@ -1095,15 +1095,16 @@ int pc_disguise(struct map_session_data *sd, int class_) {
 		return 0;
 		return 0;
 	if (class_ && (sd->disguise || pc_isriding(sd)))
 	if (class_ && (sd->disguise || pc_isriding(sd)))
 		return 0;
 		return 0;
-	
+
+	pc_stop_walking(sd, 0);
+	clif_clearchar(&sd->bl, 0);
+
 	if (!class_) {
 	if (!class_) {
 		sd->disguise = 0;
 		sd->disguise = 0;
 		class_ = sd->status.class_;
 		class_ = sd->status.class_;
 	} else
 	} else
 		sd->disguise=class_;
 		sd->disguise=class_;
 
 
-	pc_stop_walking(sd, 0);
-	clif_clearchar(&sd->bl, 0);
 	status_set_viewdata(&sd->bl, class_);
 	status_set_viewdata(&sd->bl, class_);
 	clif_changeoption(&sd->bl);
 	clif_changeoption(&sd->bl);
 	clif_spawn(&sd->bl);
 	clif_spawn(&sd->bl);

+ 1 - 1
src/map/status.c

@@ -5877,7 +5877,7 @@ int status_readdb(void) {
 		}
 		}
 		if(j < MAX_WEAPON_TYPE + 5)
 		if(j < MAX_WEAPON_TYPE + 5)
 		{	//Weapon #.MAX_WEAPON_TYPE is constantly not load. Fix to that: replace < with <= [blackhole89]
 		{	//Weapon #.MAX_WEAPON_TYPE is constantly not load. Fix to that: replace < with <= [blackhole89]
-			ShowDebug("%s: Not enough columns at line %d\n", i, j);
+			ShowDebug("%s: Not enough columns at line %d\n", path, i);
 			continue;
 			continue;
 		}
 		}
 		if(atoi(split[0])>=MAX_PC_CLASS)
 		if(atoi(split[0])>=MAX_PC_CLASS)