From 3ac466e7e094d378706fa2ec4ac42136796a65ec Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 11 Jan 2012 21:19:07 +0000 Subject: added remode-specific exp files processing as per kenpachi request, special thanks to brianl git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15424 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/homunculus.c | 8 +++++++- src/map/pc.c | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'src/map') diff --git a/src/map/homunculus.c b/src/map/homunculus.c index d46c55a52..31cb5b012 100644 --- a/src/map/homunculus.c +++ b/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++){ diff --git a/src/map/pc.c b/src/map/pc.c index 032516810..7ca3e7c54 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -8272,7 +8272,11 @@ int pc_readdb(void) // 必要??値?み?み 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); -- cgit v1.2.3-70-g09d2