summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-22 07:37:23 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-22 07:37:23 +0000
commit5fb385aef1e83cef546ea69b1b06feb00b8e5a73 (patch)
tree2642028164794618af0e46d978eba49b0005baa8 /src/map/itemdb.c
parent505dca128017c2e65d52082ffdb54750ef371e6c (diff)
downloadhercules-5fb385aef1e83cef546ea69b1b06feb00b8e5a73.tar.gz
hercules-5fb385aef1e83cef546ea69b1b06feb00b8e5a73.tar.bz2
hercules-5fb385aef1e83cef546ea69b1b06feb00b8e5a73.tar.xz
hercules-5fb385aef1e83cef546ea69b1b06feb00b8e5a73.zip
Rehashed Item_delay.txt (bugreport:5487)
- Before you could only have MAX_ITEMDELAYS (10) items with delays. Now: you can have up to MAX_ITEMDELAYS (10) concurrent delays. and of course you can always increase MAX_ITEMDELAYS in src/map/itemdb.h as much as you may need. - Item delays are no longer lost on logout, they're persistent until server restarts. - When a item use is denied due to delay still up a message now tells the user why he can't use the item (before would leave the user wondering wtf was going on. it had no response) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15762 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 03de87081..3523ea7ef 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -1038,7 +1038,7 @@ static void itemdb_read(void)
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);
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_delay.txt", ',', 2, 2, -1, &itemdb_read_itemdelay);
sv_readdb(db_path, "item_buyingstore.txt", ',', 1, 1, -1, &itemdb_read_buyingstore);
}