diff options
author | Haru <haru@dotalux.com> | 2020-03-08 22:32:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-08 22:32:22 +0100 |
commit | 21e3a41e912336914d0456257b6737dd2e9be0ef (patch) | |
tree | 02b2311c68e2301d5c2e1e73deb4b10777b0257a /src/map/clif.c | |
parent | 4891c9710015fdf98ebea2873802e993aa127654 (diff) | |
parent | 2f32871ca7790a4924dec19aeeabc1da6cb1fc32 (diff) | |
download | hercules-21e3a41e912336914d0456257b6737dd2e9be0ef.tar.gz hercules-21e3a41e912336914d0456257b6737dd2e9be0ef.tar.bz2 hercules-21e3a41e912336914d0456257b6737dd2e9be0ef.tar.xz hercules-21e3a41e912336914d0456257b6737dd2e9be0ef.zip |
Merge pull request #2546 from HerculesWS/unit_refactor
Refactor unit.c - Part I
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 3022d7f69..a8b6ea768 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -4900,7 +4900,7 @@ static int clif_damage(struct block_list *src, struct block_list *dst, int sdela } if(src == dst) { - unit->setdir(src,unit->getdir(src)); + unit->set_dir(src, unit->getdir(src)); } //Return adjusted can't walk delay for further processing. @@ -11130,7 +11130,7 @@ static void clif_parse_WalkToXY(int fd, struct map_session_data *sd) //Set last idle time... [Skotlex] pc->update_idle_time(sd, BCIDLE_WALK); - unit->walktoxy(&sd->bl, x, y, 4); + unit->walk_toxy(&sd->bl, x, y, 4); } /// Notification about the result of a disconnect request (ZC_ACK_REQ_DISCONNECT). @@ -11348,15 +11348,7 @@ static void clif_parse_MapMove(int fd, struct map_session_data *sd) /// 0 = straight /// 1 = turned CW /// 2 = turned CCW -/// dir: -/// 0 = north -/// 1 = northwest -/// 2 = west -/// 3 = southwest -/// 4 = south -/// 5 = southeast -/// 6 = east -/// 7 = northeast +/// dir: @see enum unit_dir static void clif_changed_dir(struct block_list *bl, enum send_target target) { unsigned char buf[64]; @@ -16459,7 +16451,7 @@ static void clif_parse_HomMoveToMaster(int fd, struct map_session_data *sd) unit->calc_pos(bl, sd->bl.x, sd->bl.y, sd->ud.dir); ud = unit->bl2ud(bl); - unit->walktoxy(bl, ud->to_x, ud->to_y, 4); + unit->walk_toxy(bl, ud->to_x, ud->to_y, 4); } static void clif_parse_HomMoveTo(int fd, struct map_session_data *sd) __attribute__((nonnull (2))); @@ -16483,7 +16475,7 @@ static void clif_parse_HomMoveTo(int fd, struct map_session_data *sd) else return; - unit->walktoxy(bl, x, y, 4); + unit->walk_toxy(bl, x, y, 4); } static void clif_parse_HomAttack(int fd, struct map_session_data *sd) __attribute__((nonnull (2))); |