summaryrefslogtreecommitdiff
path: root/src/map/map.h
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-10 17:15:37 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-10 17:15:37 +0000
commitcb03e17fdc83704678b67e20453511d3f2c41d64 (patch)
tree5d1289e986c73f95dc06ee3e49f675e72a7f93f8 /src/map/map.h
parent4b2f3fcbde7d956c0a4f0f7ebfdb9c9ac1167c18 (diff)
downloadhercules-cb03e17fdc83704678b67e20453511d3f2c41d64.tar.gz
hercules-cb03e17fdc83704678b67e20453511d3f2c41d64.tar.bz2
hercules-cb03e17fdc83704678b67e20453511d3f2c41d64.tar.xz
hercules-cb03e17fdc83704678b67e20453511d3f2c41d64.zip
Performance Improvement; Server shut down, instance clear up, and @cleanmap are now all faster. Instead of wasting time doing a dbmap lookup (of a data it already possessed!) on each floor item being deleted, it'll use the data to clean the item.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16901 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.h')
-rw-r--r--src/map/map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.h b/src/map/map.h
index f46a28ca4..43bef63af 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -658,7 +658,7 @@ bool map_addnpc(int,struct npc_data *);
// map item
int map_clearflooritem_timer(int tid, unsigned int tick, int id, intptr_t data);
int map_removemobs_timer(int tid, unsigned int tick, int id, intptr_t data);
-#define map_clearflooritem(id) map_clearflooritem_timer(0,0,id,1)
+void map_clearflooritem(struct block_list* bl);
int map_addflooritem(struct item *item_data,int amount,int m,int x,int y,int first_charid,int second_charid,int third_charid,int flags);
// player to map session