diff options
author | Haru <haru@dotalux.com> | 2015-01-22 12:04:07 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-01-22 12:05:10 +0100 |
commit | 8f7889b79ce4b189390c33d23b338afb078bef38 (patch) | |
tree | ecdf38968b8aa628aae6baa667c678079da50a87 /src/map/map.c | |
parent | e1b9abba3ae76aa7a6c310abdf485cd34ab4057d (diff) | |
download | hercules-8f7889b79ce4b189390c33d23b338afb078bef38.tar.gz hercules-8f7889b79ce4b189390c33d23b338afb078bef38.tar.bz2 hercules-8f7889b79ce4b189390c33d23b338afb078bef38.tar.xz hercules-8f7889b79ce4b189390c33d23b338afb078bef38.zip |
Removed name distinction between (sql) mob/item/mob_skill db and db_re variants
- Since there (currently and in future) is no difference between the
table structure for renewal and pre-renewal databases, it makes no
sense to have extra code that makes a distinction between their names.
A server will always use either one or the other, never both at the
same time.
- If you have a mob_db_re, mob_skill_db_re and/or item_db_re table,
please rename it to mob_db, mob_skill_db and/or item_db_re,
respectively.
- No upgrade script provided. I'd like to remind everyone that these
tables are optional (and deprecated), and they are only offered for
convenience for those who need them for web control panels and similar
software.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/map/map.c b/src/map/map.c index dcc0532dd..ae31f01ec 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -3728,18 +3728,12 @@ int inter_config_read(char *cfgName) { safestrncpy(map->item_db_db, w2, sizeof(map->item_db_db)); else if(strcmpi(w1,"mob_db_db")==0) safestrncpy(map->mob_db_db, w2, sizeof(map->mob_db_db)); - else if (strcmpi(w1, "mob_db_re_db") == 0) - safestrncpy(map->mob_db_re_db, w2, sizeof(map->mob_db_re_db)); else if(strcmpi(w1,"item_db2_db")==0) safestrncpy(map->item_db2_db, w2, sizeof(map->item_db2_db)); - else if(strcmpi(w1,"item_db_re_db")==0) - safestrncpy(map->item_db_re_db, w2, sizeof(map->item_db_re_db)); else if(strcmpi(w1,"mob_db2_db")==0) safestrncpy(map->mob_db2_db, w2, sizeof(map->mob_db2_db)); else if(strcmpi(w1, "mob_skill_db_db") == 0) safestrncpy(map->mob_skill_db_db, w2, sizeof(map->mob_skill_db_db)); - else if(strcmpi(w1, "mob_skill_db_re_db") == 0) - safestrncpy(map->mob_skill_db_re_db, w2, sizeof(map->mob_skill_db_re_db)); else if(strcmpi(w1,"mob_skill_db2_db")==0) safestrncpy(map->mob_skill_db2_db, w2, sizeof(map->mob_skill_db2_db)); else if(strcmpi(w1,"interreg_db")==0) @@ -6051,12 +6045,9 @@ void map_defaults(void) { sprintf(map->item_db_db, "item_db"); sprintf(map->item_db2_db, "item_db2"); - sprintf(map->item_db_re_db, "item_db_re"); sprintf(map->mob_db_db, "mob_db"); - sprintf(map->mob_db_re_db, "mob_db_re"); sprintf(map->mob_db2_db, "mob_db2"); sprintf(map->mob_skill_db_db, "mob_skill_db"); - sprintf(map->mob_skill_db_re_db, "mob_skill_db_re"); sprintf(map->mob_skill_db2_db, "mob_skill_db2"); sprintf(map->interreg_db, "interreg"); |