diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-05 22:54:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-05 22:54:01 +0300 |
commit | 694e3cd9efae509c5cec3d50bc17d037fd71733e (patch) | |
tree | 576f5b1a9f41dfdc779e9019fe2f46e7cf014d34 | |
parent | 924d3b6f300839800b5c5c514f918edd432fc8bb (diff) | |
download | evol-hercules-694e3cd9efae509c5cec3d50bc17d037fd71733e.tar.gz evol-hercules-694e3cd9efae509c5cec3d50bc17d037fd71733e.tar.bz2 evol-hercules-694e3cd9efae509c5cec3d50bc17d037fd71733e.tar.xz evol-hercules-694e3cd9efae509c5cec3d50bc17d037fd71733e.zip |
Replace struct mob_data to TBL_MOB.
-rw-r--r-- | src/map/mob.c | 2 | ||||
-rw-r--r-- | src/map/send.c | 2 | ||||
-rw-r--r-- | src/map/unit.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 6d6148b..5e029f0 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -22,7 +22,7 @@ int emob_deleteslave_sub(struct block_list *bl, va_list ap) hookStop(); return 0; } - struct mob_data *md = (struct mob_data *)bl; + TBL_MOB *md = (TBL_MOB *)bl; if (!md) { hookStop(); diff --git a/src/map/send.c b/src/map/send.c index b2bafa0..6fa91fa 100644 --- a/src/map/send.c +++ b/src/map/send.c @@ -116,7 +116,7 @@ void send_mob_info(struct block_list* bl1, struct block_list* bl2, return; char buf[12]; - struct mob_data *md = (struct mob_data *)bl1; + TBL_MOB *md = (TBL_MOB *)bl1; WBUFW (buf, 0) = 0xb03; WBUFW (buf, 2) = 12; // len diff --git a/src/map/unit.c b/src/map/unit.c index e5b7e97..8153a4b 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -131,7 +131,7 @@ int eunit_can_move(struct block_list *bl) // Icewall walk block special trapped monster mode if(bl->type == BL_MOB) { - struct mob_data *md = BL_CAST(BL_MOB, bl); + TBL_MOB *md = BL_CAST(BL_MOB, bl); if(md && ((md->status.mode&MD_BOSS && battle->bc->boss_icewall_walk_block == 1 && map->getcell(bl->m,bl->x,bl->y,CELL_CHKICEWALL)) || (!(md->status.mode&MD_BOSS) && battle->bc->mob_icewall_walk_block == 1 && map->getcell(bl->m,bl->x,bl->y,CELL_CHKICEWALL)))) { |