diff options
author | Jedzkie <jedzkie13@rocketmail.com> | 2017-04-25 16:44:27 +0800 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2017-04-29 00:47:06 +0200 |
commit | 25e4f661211fc91a64a6e18d8ffd9d16581dfaf9 (patch) | |
tree | 69a41c87390593f0ca4e592a83037cf5b35ffcf8 /src/map/itemdb.c | |
parent | e6c0203a6da6930d9c4a2b762190cd0428e106ca (diff) | |
download | hercules-25e4f661211fc91a64a6e18d8ffd9d16581dfaf9.tar.gz hercules-25e4f661211fc91a64a6e18d8ffd9d16581dfaf9.tar.bz2 hercules-25e4f661211fc91a64a6e18d8ffd9d16581dfaf9.tar.xz hercules-25e4f661211fc91a64a6e18d8ffd9d16581dfaf9.zip |
Fixes #994
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r-- | src/map/itemdb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index a35aa67f1..4076e295c 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -2073,6 +2073,9 @@ int itemdb_readdb_libconfig_sub(struct config_setting_t *it, int n, const char * if ((t = libconfig->setting_get_member(it, "KeepAfterUse"))) id.flag.keepafteruse = libconfig->setting_get_bool(t) ? 1 : 0; + if ((t = libconfig->setting_get_member(it, "DropAnnounce"))) + id.flag.drop_announce = libconfig->setting_get_bool(t) ? 1 : 0; + if (itemdb->lookup_const(it, "Delay", &i32) && i32 >= 0) id.delay = i32; |