summaryrefslogtreecommitdiff
path: root/src/map/itemdb.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/itemdb.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/itemdb.c')
-rw-r--r--src/map/itemdb.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 8da198c59..03de87081 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -567,11 +567,7 @@ static void itemdb_read_itemgroup_sub(const char* filename)
static void itemdb_read_itemgroup(void)
{
char path[256];
-#if REMODE
- snprintf(path, 255, "%s/re/item_group_db.txt", db_path);
-#else
- snprintf(path, 255, "%s/pre-re/item_group_db.txt", db_path);
-#endif
+ snprintf(path, 255, "%s/"DBPATH"item_group_db.txt", db_path);
memset(&itemgroup_db, 0, sizeof(itemgroup_db));
itemdb_read_itemgroup_sub(path);
ShowStatus("Done reading '"CL_WHITE"%s"CL_RESET"'.\n", "item_group_db.txt");
@@ -870,11 +866,7 @@ static bool itemdb_parse_dbrow(char** str, const char* source, int line, int scr
static int itemdb_readdb(void)
{
const char* filename[] = {
-#if REMODE
- "re/item_db.txt",
-#else
- "pre-re/item_db.txt",
-#endif
+ DBPATH"item_db.txt",
"item_db2.txt" };
int fi;
@@ -1045,11 +1037,7 @@ static void itemdb_read(void)
itemdb_read_itemgroup();
sv_readdb(db_path, "item_avail.txt", ',', 2, 2, -1, &itemdb_read_itemavail);
sv_readdb(db_path, "item_noequip.txt", ',', 2, 2, -1, &itemdb_read_noequip);
-#if REMODE
- sv_readdb(db_path, "re/item_trade.txt", ',', 3, 3, -1, &itemdb_read_itemtrade);
-#else
- sv_readdb(db_path, "pre-re/item_trade.txt", ',', 3, 3, -1, &itemdb_read_itemtrade);
-#endif
+ sv_readdb(db_path, DBPATH"item_trade.txt", ',', 3, 3, -1, &itemdb_read_itemtrade);
sv_readdb(db_path, "item_delay.txt", ',', 2, 2, MAX_ITEMDELAYS, &itemdb_read_itemdelay);
sv_readdb(db_path, "item_buyingstore.txt", ',', 1, 1, -1, &itemdb_read_buyingstore);
}