diff options
author | skyleo <skyleo@skyleo.de> | 2019-11-17 13:35:15 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2020-03-08 20:59:35 +0100 |
commit | ddd62450518afd71bd72f914196b6a2eac7e6bd3 (patch) | |
tree | 6e2aabd88f519ff681a9eeed132e8863c0a56cd9 /src/map/pet.c | |
parent | 3077a395f8ff1bc86972914f2f94d58e893e2aa7 (diff) | |
download | hercules-ddd62450518afd71bd72f914196b6a2eac7e6bd3.tar.gz hercules-ddd62450518afd71bd72f914196b6a2eac7e6bd3.tar.bz2 hercules-ddd62450518afd71bd72f914196b6a2eac7e6bd3.tar.xz hercules-ddd62450518afd71bd72f914196b6a2eac7e6bd3.zip |
Change the name of all functions which got their return-value meaning changed
Diffstat (limited to 'src/map/pet.c')
-rw-r--r-- | src/map/pet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pet.c b/src/map/pet.c index 0537baaa7..aeb372c05 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -892,7 +892,7 @@ static int pet_randomwalk(struct pet_data *pd, int64 tick) int x=pd->bl.x+r%(d*2+1)-d; int y=pd->bl.y+r/(d*2+1)%(d*2+1)-d; if (map->getcell(pd->bl.m, &pd->bl, x, y, CELL_CHKPASS) != 0 - && unit->walktoxy(&pd->bl, x, y, 0) == 0) { + && unit->walk_toxy(&pd->bl, x, y, 0) == 0) { pd->move_fail_count=0; break; } @@ -992,7 +992,7 @@ static int pet_ai_sub_hard(struct pet_data *pd, struct map_session_data *sd, int return 0; //Already walking to him unit->calc_pos(&pd->bl, sd->bl.x, sd->bl.y, sd->ud.dir); - if (unit->walktoxy(&pd->bl, pd->ud.to_x, pd->ud.to_y, 0) != 0) + if (unit->walk_toxy(&pd->bl, pd->ud.to_x, pd->ud.to_y, 0) != 0) pet->randomwalk(pd,tick); return 0; |