From 20e70d1846ba39599255887bef5098583a7586c9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 5 Mar 2015 23:06:20 +0300 Subject: Replace struct flooritem_data to TBL_ITEM. --- src/map/map.c | 2 +- src/map/pc.c | 2 +- src/map/pc.h | 2 +- src/map/script.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/map/map.c b/src/map/map.c index 618ae9c..c1d6299 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -35,7 +35,7 @@ int emap_addflooritem_post(int retVal, int *third_charid __attribute__ ((unused)), int *flags __attribute__ ((unused))) { - struct flooritem_data* fitem = (struct flooritem_data*)idb_get(map->id_db, retVal); + TBL_ITEM* fitem = (TBL_ITEM*)idb_get(map->id_db, retVal); if (fitem && fitem->cleartimer != INVALID_TIMER) { int timeout = battle->bc->flooritem_lifetime; diff --git a/src/map/pc.c b/src/map/pc.c index 78c6d5f..594b1c0 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -155,7 +155,7 @@ bool epc_can_attack (TBL_PC *sd, int *target_id) } int epc_takeitem(TBL_PC *sd __attribute__ ((unused)), - struct flooritem_data *fitem) + TBL_ITEM *fitem) { if (!fitem) return 0; diff --git a/src/map/pc.h b/src/map/pc.h index 313e049..8b1bd7e 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -19,7 +19,7 @@ void epc_unequipitem_pos(TBL_PC *sd, int *nPtr, int *posPtr); bool epc_can_attack (TBL_PC *sd, int *target_id); -int epc_takeitem(TBL_PC *sd, struct flooritem_data *fitem); +int epc_takeitem(TBL_PC *sd, TBL_ITEM *fitem); void epc_validate_levels(void); diff --git a/src/map/script.c b/src/map/script.c index b711688..b321541 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -958,7 +958,7 @@ static int buildin_getareadropitem_sub_del(struct block_list *bl, va_list ap) const int item = va_arg(ap, int); int *const amount = va_arg(ap, int *); - struct flooritem_data *drop = (struct flooritem_data *)bl; + TBL_ITEM *drop = (TBL_ITEM *)bl; if (drop->item_data.nameid == item) { -- cgit v1.2.3-60-g2f50