|
@@ -738,17 +738,17 @@ int clif_clearunit_area(struct block_list* bl, clr_type type)
|
|
|
static int clif_clearunit_delayed_sub(int tid, unsigned int tick, int id, intptr_t data)
|
|
|
{
|
|
|
struct block_list *bl = (struct block_list *)data;
|
|
|
- clif_clearunit_area(bl, CLR_OUTSIGHT);
|
|
|
+ clif_clearunit_area(bl, (clr_type) id);
|
|
|
aFree(bl);
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int clif_clearunit_delayed(struct block_list* bl, unsigned int tick)
|
|
|
+int clif_clearunit_delayed(struct block_list* bl, clr_type type, unsigned int tick)
|
|
|
{
|
|
|
struct block_list *tbl;
|
|
|
tbl = (struct block_list*)aMalloc(sizeof (struct block_list));
|
|
|
memcpy (tbl, bl, sizeof (struct block_list));
|
|
|
- add_timer(tick, clif_clearunit_delayed_sub, 0, (intptr_t)tbl);
|
|
|
+ add_timer(tick, clif_clearunit_delayed_sub, (int)type, (intptr_t)tbl);
|
|
|
return 0;
|
|
|
}
|
|
|
|