Procházet zdrojové kódy

added remode-specific exp files processing as per kenpachi request, special thanks to brianl

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15424 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind před 13 roky
rodič
revize
35b178f8d8
3 změnil soubory, kde provedl 14 přidání a 4 odebrání
  1. 2 2
      src/char_sql/int_guild.c
  2. 7 1
      src/map/homunculus.c
  3. 5 1
      src/map/pc.c

+ 2 - 2
src/char_sql/int_guild.c

@@ -651,8 +651,8 @@ int inter_guild_ReadEXP(void)
 	FILE *fp;
 	char line[1024];
 	for (i=0;i<100;i++) guild_exp[i]=0;
-
-	sprintf(line, "%s/exp_guild.txt", db_path);
+	//this is going to be discussed, temp fix
+	sprintf(line, "%s/pre-re/exp_guild.txt", db_path);
 	fp=fopen(line,"r");
 	if(fp==NULL){
 		ShowError("can't read %s\n", line);

+ 7 - 1
src/map/homunculus.c

@@ -1072,7 +1072,13 @@ void read_homunculus_expdb(void)
 	FILE *fp;
 	char line[1024];
 	int i, j=0;
-	char *filename[]={"exp_homun.txt","exp_homun2.txt"};
+	char *filename[]={
+#if REMODE
+		"re/exp_homun.txt",
+#else
+		"pre-re/exp_homun.txt",
+#endif
+		"exp_homun2.txt"};
 
 	memset(hexptbl,0,sizeof(hexptbl));
 	for(i=0; i<2; i++){

+ 5 - 1
src/map/pc.c

@@ -8272,7 +8272,11 @@ int pc_readdb(void)
 	// •K—v??’l?‚Ý?‚Ý
 	memset(exp_table,0,sizeof(exp_table));
 	memset(max_level,0,sizeof(max_level));
-	sprintf(line, "%s/exp.txt", db_path);
+#if REMODE
+	sprintf(line, "%s/re/exp.txt", db_path);
+#else
+	sprintf(line, "%s/pre-re/exp.txt", db_path);
+#endif
 	fp=fopen(line, "r");
 	if(fp==NULL){
 		ShowError("can't read %s\n", line);