Przeglądaj źródła

* Commented out code from r14388, as this breaks NPCs that rely on running global events in duplicates. (IE: WoE scripts)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14390 54d463be-8e91-2dee-dedb-b68131a5f0ec
L0ne_W0lf 14 lat temu
rodzic
commit
0b1cd84732
2 zmienionych plików z 2 dodań i 1 usunięć
  1. 1 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/npc.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.
 
 2010/08/20
+	* Rev. 14390 Commented out code from r14388, as this breaks NPCs that rely on running global events in duplicates. (IE: WoE scripts) [L0ne_W0lf]
 	* Removed processing for undocumented and unused event 'OnCharIfInit' which is essentially an alias for event 'OnInterIfInit'. [Paradox924X]
 	* Made it so global events don't get executed in duplicates to prevent unnecessary reprocessing of events that only need to be run once.
 	  This potentially reduces the total number of global events by hundreds, even thousands. [Paradox924X]

+ 1 - 1
src/map/npc.c

@@ -282,7 +282,7 @@ int npc_event_doall_sub(DBKey key, void* data, va_list ap)
 	rid = va_arg(ap, int);
 
 	p = strchr(p, ':'); // match only the event name
-	if( p && strcmpi(name, p) == 0 && !ev->nd->src_id ) // Do not run on duplicates. [Paradox924X]
+	if( p && strcmpi(name, p) == 0 /* && !ev->nd->src_id */ ) // Do not run on duplicates. [Paradox924X]
 	{
 		if(rid) // a player may only have 1 script running at the same time
 			npc_event_sub(map_id2sd(rid),ev,key.str);