From e25963f4562516f4b4aada3983af567f81555165 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 31 Aug 2006 14:18:37 +0000 Subject: - Fixed @summon's delete timer being screwed up. - Cleaned up a bit the summon script command. - Fixed the clone script command's delete-timer being screwed up. - Corrected battle config name max_walk_rate, it should be named max_walk_speed. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8559 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index a5478c50e..ebcd78b2a 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -8594,7 +8594,6 @@ atcommand_summon( { char name[NAME_LENGTH]; int mob_id = 0; - int id = 0; int duration = 0; struct mob_data *md; unsigned int tick=gettick(); @@ -8621,7 +8620,7 @@ atcommand_summon( if(md){ md->master_id=sd->bl.id; md->special_state.ai=1; - md->deletetimer=add_timer(tick+(duration*60000),mob_timer_delete,id,0); + md->deletetimer=add_timer(tick+(duration*60000),mob_timer_delete,md->bl.id,0); clif_misceffect2(&md->bl,344); mob_spawn(md); sc_start4(&md->bl, SC_MODECHANGE, 100, 1, 0, MD_AGGRESSIVE, 0, 60000); -- cgit v1.2.3-60-g2f50