summaryrefslogtreecommitdiff
path: root/src/map/unit.h
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-07-09 06:29:03 -0300
committerpanikon <panikon@zoho.com>2014-07-09 07:09:37 -0300
commit1eee0fd015aaca31df67f0cc7fa36105ade366df (patch)
tree1475ccfd8b7c6f3756768d7006afef74dd14f0f7 /src/map/unit.h
parentfc41d1f9fa9f3eff21568c8111f74454793dea9c (diff)
downloadhercules-1eee0fd015aaca31df67f0cc7fa36105ade366df.tar.gz
hercules-1eee0fd015aaca31df67f0cc7fa36105ade366df.tar.bz2
hercules-1eee0fd015aaca31df67f0cc7fa36105ade366df.tar.xz
hercules-1eee0fd015aaca31df67f0cc7fa36105ade366df.zip
Fixed issue with mounts and jobchange, ranger and mechanic mounts weren't being checked and properly removed in pc_setoption
Abstracted running functions into two other methods (unit_run and unit_wugdash) Added checks in skill_dance_switch so it'd be safe to call it whenever it's needed Documented unit_run, unit_run_hit, skill_dance_switch and sc_conf_type
Diffstat (limited to 'src/map/unit.h')
-rw-r--r--src/map/unit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/unit.h b/src/map/unit.h
index 9e05647b1..f29a6903a 100644
--- a/src/map/unit.h
+++ b/src/map/unit.h
@@ -83,8 +83,8 @@ struct unit_interface {
int (*walktoxy) (struct block_list *bl, short x, short y, int flag);
int (*walktobl_sub) (int tid, int64 tick, int id, intptr_t data);
int (*walktobl) (struct block_list *bl, struct block_list *tbl, int range, int flag);
- int (*run) (struct block_list *bl);
- int (*wugdash) (struct block_list *bl, struct map_session_data *sd);
+ bool (*run) (struct block_list *bl, struct map_session_data *sd, enum sc_type type);
+ void (*run_hit) (struct block_list *bl, struct status_change *sc, struct map_session_data *sd, enum sc_type type);
int (*escape) (struct block_list *bl, struct block_list *target, short dist);
int (*movepos) (struct block_list *bl, short dst_x, short dst_y, int easy, bool checkpath);
int (*setdir) (struct block_list *bl, unsigned char dir);