summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emap/parse.c2
-rw-r--r--src/emap/unit.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/emap/parse.c b/src/emap/parse.c
index 3025aaa..f9599d0 100644
--- a/src/emap/parse.c
+++ b/src/emap/parse.c
@@ -162,7 +162,7 @@ void map_parse_pet_move(int fd)
short y = RFIFOW(fd, 8);
struct block_list *pdBl = &sd->pd->bl;
- if (map->getcell(pdBl->m, x, y, CELL_CHKPASS))
+ if (map->getcell(pdBl->m, pdBl, x, y, CELL_CHKPASS))
unit->walktoxy(pdBl, x, y, 0);
}
diff --git a/src/emap/unit.c b/src/emap/unit.c
index 9fc77da..ad661f0 100644
--- a/src/emap/unit.c
+++ b/src/emap/unit.c
@@ -134,8 +134,8 @@ int eunit_can_move(struct block_list *bl)
if(bl->type == BL_MOB)
{
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))))
+ if(md && ((md->status.mode&MD_BOSS && battle->bc->boss_icewall_walk_block == 1 && map->getcell(bl->m, bl, bl->x, bl->y, CELL_CHKICEWALL))
+ || (!(md->status.mode&MD_BOSS) && battle->bc->mob_icewall_walk_block == 1 && map->getcell(bl->m, bl, bl->x, bl->y, CELL_CHKICEWALL))))
{
md->walktoxy_fail_count = 1; //Make sure rudeattacked skills are invoked
hookStop();