Quellcode durchsuchen

* Readded code that was removed from atcommand_showmobs by mistake in the previous commit. (r13383)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13384 54d463be-8e91-2dee-dedb-b68131a5f0ec
FlavioJS vor 16 Jahren
Ursprung
Commit
609da40fd7
2 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 1 0
      Changelog-Trunk.txt
  2. 3 0
      src/map/atcommand.c

+ 1 - 0
Changelog-Trunk.txt

@@ -4,6 +4,7 @@ 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.
 
 2008/11/22
+	* Readded code that was removed from atcommand_showmobs by mistake in the previous commit. (r13383)
 	* Hunted down improper uses of va_list variables.
 	* Hunted down the simpler 64bit pointer truncations. [FlavioJS]
 2008/11/18

+ 3 - 0
src/map/atcommand.c

@@ -7054,6 +7054,9 @@ int atcommand_showmobs(const int fd, struct map_session_data* sd, const char* co
 		if( md == NULL )
 			break;// no more mobs
 
+		if( md->special_state.ai || md->master_id )
+			continue;//Hide slaves and player summoned mobs. [Skotlex]
+
 		if( mob_id == -1 || md->class_ == mob_id )
 		{
 			++number;