From cb03e17fdc83704678b67e20453511d3f2c41d64 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 10 Nov 2012 17:15:37 +0000 Subject: 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 --- src/map/mob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index 50a9397da..3c485ee58 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1629,7 +1629,7 @@ static bool mob_ai_sub_hard(struct mob_data *md, unsigned int tick) unit_set_walkdelay(&md->bl, tick, md->status.amotion, 1); } //Clear item. - map_clearflooritem (tbl->id); + map_clearflooritem (tbl); mob_unlocktarget (md,tick); return true; } -- cgit v1.2.3-70-g09d2