Selaa lähdekoodia

Reverted a jA change in event loading

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1209 54d463be-8e91-2dee-dedb-b68131a5f0ec
celest 20 vuotta sitten
vanhempi
commit
33477a0c35
2 muutettua tiedostoa jossa 9 lisäystä ja 6 poistoa
  1. 3 0
      Changelog-SVN.txt
  2. 6 6
      src/map/npc.c

+ 3 - 0
Changelog-SVN.txt

@@ -1,5 +1,8 @@
 Date	Added
 
+03/08
+        * Reverted a jA change in event loading [celest]
+
 03/07
         * Added uptime logging support whenever the server closes, to enable change
           the 0 to 1 in core.c [celest]

+ 6 - 6
src/map/npc.c

@@ -1882,15 +1882,15 @@ static int npc_parse_script(char *w1,char *w2,char *w3,char *w4,char *first_line
 				printf("npc_parse_script: label name error !\n");
 				exit(1);
 			}else{
-				struct event_data *ev2;
+				//struct event_data *ev2;
 				ev->nd=nd;
 				ev->pos=pos;
 				sprintf(buf,"%s::%s",nd->exname,lname);
-				ev2 = strdb_search(ev_db,buf);
-				if(ev2 != NULL) {
-					printf("npc_parse_script : duplicate event %s\n",buf);
-					aFree(ev2);
-				}
+				//ev2 = strdb_search(ev_db,buf);
+				//if(ev2 != NULL) {
+				//	printf("npc_parse_script : duplicate event %s\n",buf);
+				//	aFree(ev2);
+				//}
 				strdb_insert(ev_db,buf,ev);
 			}
 		}