summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorlordttseven <lordttseven@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-18 13:32:13 +0000
committerlordttseven <lordttseven@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-18 13:32:13 +0000
commit59dc4717ad51d0d756a9097495868577b7433054 (patch)
treea678e3303bc5c0486b87f70e1ccbd33643d2b676 /src/map/pc.c
parent062e6a90f493c6a2cd6b3ec8ae30cade9b58983d (diff)
downloadhercules-59dc4717ad51d0d756a9097495868577b7433054.tar.gz
hercules-59dc4717ad51d0d756a9097495868577b7433054.tar.bz2
hercules-59dc4717ad51d0d756a9097495868577b7433054.tar.xz
hercules-59dc4717ad51d0d756a9097495868577b7433054.zip
* uncluttered DB paths between REMODE on/off a little
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15719 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c30
1 files changed, 10 insertions, 20 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index e4554ac72..bea0b2941 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -8451,11 +8451,9 @@ int pc_readdb(void)
// 必要??値?み?み
memset(exp_table,0,sizeof(exp_table));
memset(max_level,0,sizeof(max_level));
-#if REMODE
- sprintf(line, "%s/re/exp.txt", db_path);
-#else
- sprintf(line, "%s/pre-re/exp.txt", db_path);
-#endif
+
+ sprintf(line, "%s/"DBPATH"exp.txt", db_path);
+
fp=fopen(line, "r");
if(fp==NULL){
ShowError("can't read %s\n", line);
@@ -8537,22 +8535,17 @@ int pc_readdb(void)
// スキルツリ?
memset(skill_tree,0,sizeof(skill_tree));
-#if REMODE
- sv_readdb(db_path, "re/skill_tree.txt", ',', 3+MAX_PC_SKILL_REQUIRE*2, 4+MAX_PC_SKILL_REQUIRE*2, -1, &pc_readdb_skilltree);
-#else
- sv_readdb(db_path, "pre-re/skill_tree.txt", ',', 3+MAX_PC_SKILL_REQUIRE*2, 4+MAX_PC_SKILL_REQUIRE*2, -1, &pc_readdb_skilltree);
-#endif
+
+ sv_readdb(db_path, DBPATH"skill_tree.txt", ',', 3+MAX_PC_SKILL_REQUIRE*2, 4+MAX_PC_SKILL_REQUIRE*2, -1, &pc_readdb_skilltree);
// ?性修正テ?ブル
for(i=0;i<4;i++)
for(j=0;j<ELE_MAX;j++)
for(k=0;k<ELE_MAX;k++)
attr_fix_table[i][j][k]=100;
-#if REMODE
- sprintf(line, "%s/re/attr_fix.txt", db_path);
-#else
- sprintf(line, "%s/pre-re/attr_fix.txt", db_path);
-#endif
+
+ sprintf(line, "%s/"DBPATH"attr_fix.txt", db_path);
+
fp=fopen(line,"r");
if(fp==NULL){
ShowError("can't read %s\n", line);
@@ -8600,11 +8593,8 @@ int pc_readdb(void)
// スキルツリ?
memset(statp,0,sizeof(statp));
i=1;
-#if REMODE
- sprintf(line, "%s/re/statpoint.txt", db_path);
-#else
- sprintf(line, "%s/pre-re/statpoint.txt", db_path);
-#endif
+
+ sprintf(line, "%s/"DBPATH"statpoint.txt", db_path);
fp=fopen(line,"r");
if(fp == NULL){
ShowWarning("Can't read '"CL_WHITE"%s"CL_RESET"'... Generating DB.\n",line);