Lemongrass3110 9 سال پیش
والد
کامیت
98c30e6c4d
1فایلهای تغییر یافته به همراه9 افزوده شده و 1 حذف شده
  1. 9 1
      src/map/npc.c

+ 9 - 1
src/map/npc.c

@@ -2109,7 +2109,11 @@ int npc_addsrcfile(const char* name)
 		return 1;
 	}
 
-    if(check_filepath(name)!=2) return 0; //this is not a file 
+	//Check if this is not a file
+    if(check_filepath(name)!=2){
+		ShowError("npc_addsrcfile: Can't find source file \"%s\"\n", name );
+		return 0;
+	}
         
 	// prevent multiple insert of source files
 	file = npc_src_files;
@@ -4092,6 +4096,10 @@ int npc_parsesrcfile(const char* filepath, bool runOnInit)
 	char* buffer;
 	const char* p;
 
+	if( strstr(filepath,"does") != NULL ){
+		m = 0;
+	}
+
 	if(check_filepath(filepath)!=2) { //this is not a file 
 		ShowDebug("npc_parsesrcfile: Path doesn't seem to be a file skipping it : '%s'.\n", filepath);
 		return 0;