summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-01-10 02:33:15 +0100
committerHaru <haru@dotalux.com>2016-01-13 11:24:33 +0100
commit6ae9045b3bbbad10f9b0f2a824e12eb470fcfa5a (patch)
tree0eb4176eaa21e8d0e0d0eb36309d70aacfa49de2 /src/map/itemdb.c
parenta8154726935b2d6a2273b75126a675e6e706edab (diff)
downloadhercules-6ae9045b3bbbad10f9b0f2a824e12eb470fcfa5a.tar.gz
hercules-6ae9045b3bbbad10f9b0f2a824e12eb470fcfa5a.tar.bz2
hercules-6ae9045b3bbbad10f9b0f2a824e12eb470fcfa5a.tar.xz
hercules-6ae9045b3bbbad10f9b0f2a824e12eb470fcfa5a.zip
Added support to mark constants in db/constants.conf as deprecated
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 6b888c23e..6428bade5 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -1188,7 +1188,7 @@ void itemdb_read_chains(void) {
int c = 0;
config_setting_t *entry = NULL;
- script->set_constant2(name,i-1,0);
+ script->set_constant2(name, i-1, false, false);
itemdb->chains[count].qty = (unsigned short)libconfig->setting_length(itc);
CREATE(itemdb->chains[count].items, struct item_chain_entry, libconfig->setting_length(itc));
@@ -2149,7 +2149,7 @@ void itemdb_name_constants(void) {
script->parser_current_file = "Item Database (Likely an invalid or conflicting AegisName)";
#endif // ENABLE_CASE_CHECK
for( data = dbi_first(iter); dbi_exists(iter); data = dbi_next(iter) )
- script->set_constant2(data->name,data->nameid,0);
+ script->set_constant2(data->name, data->nameid, false, false);
#ifdef ENABLE_CASE_CHECK
script->parser_current_file = NULL;
#endif // ENABLE_CASE_CHECK