ソースを参照

Made @reloadscript wipe ALL previous mobs that the script engine spawned
- this way it is manageable via global vars; the other way doesn't allow that

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

ultramage 18 年 前
コミット
e7a00c7e06
2 ファイル変更3 行追加3 行削除
  1. 2 0
      Changelog-Trunk.txt
  2. 1 3
      src/map/npc.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.
 
 2007/01/27
+	* Made @reloadscript wipe ALL previous mobs that the script engine spawned
+	- this way it is manageable via global vars; the other way doesn't allow that
 	* Some misc cleanups (typos, formatting, forgotten changelog entry etc)
 	* Reformatted and translated atcommand.c
 	- in the process improved @marry, allowing spaces after the first comma

+ 1 - 3
src/map/npc.c

@@ -2852,9 +2852,7 @@ static int npc_cleanup_sub (struct block_list *bl, va_list ap) {
 		npc_unload((struct npc_data *)bl);
 		break;
 	case BL_MOB:
-		//This is used only on reloading npcs, so let's not free spawn-once mobs. [Skotlex]
-		if (((TBL_MOB*)bl)->spawn)
-			unit_free(bl,0);
+		unit_free(bl,0);
 		break;
 	}