summaryrefslogtreecommitdiff
path: root/src/map/map.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/map.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/map.c')
-rw-r--r--src/map/map.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 30e766402..d7be8e5a7 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1671,6 +1671,9 @@ int map_quit(struct map_session_data *sd)
if( sd->bg_id )
bg_team_leave(sd,1);
+
+ pc_itemcd_do(sd,false);
+
npc_script_event(sd, NPCE_LOGOUT);
//Unit_free handles clearing the player related data,