summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-05 23:06:20 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-05 23:06:20 +0300
commit20e70d1846ba39599255887bef5098583a7586c9 (patch)
tree5eff327cd4c3d515c32044886140ee1787b9ed9b /src
parent694e3cd9efae509c5cec3d50bc17d037fd71733e (diff)
downloadevol-hercules-20e70d1846ba39599255887bef5098583a7586c9.tar.gz
evol-hercules-20e70d1846ba39599255887bef5098583a7586c9.tar.bz2
evol-hercules-20e70d1846ba39599255887bef5098583a7586c9.tar.xz
evol-hercules-20e70d1846ba39599255887bef5098583a7586c9.zip
Replace struct flooritem_data to TBL_ITEM.
Diffstat (limited to 'src')
-rw-r--r--src/map/map.c2
-rw-r--r--src/map/pc.c2
-rw-r--r--src/map/pc.h2
-rw-r--r--src/map/script.c2
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)
{