diff options
author | epoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-04-29 22:52:10 +0000 |
---|---|---|
committer | epoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-04-29 22:52:10 +0000 |
commit | efc39a408c225e1f030b1d21938ad7004b65af96 (patch) | |
tree | c7a5a9a7e19d82dd0663d31969c2bb47964f9545 /src/map/unit.h | |
parent | cb54f6e503c6160eb5896088f04dcb75860ef153 (diff) | |
download | hercules-efc39a408c225e1f030b1d21938ad7004b65af96.tar.gz hercules-efc39a408c225e1f030b1d21938ad7004b65af96.tar.bz2 hercules-efc39a408c225e1f030b1d21938ad7004b65af96.tar.xz hercules-efc39a408c225e1f030b1d21938ad7004b65af96.zip |
- Updated the unit engine to cache attacker count rather than utilise CPU intensive block iterations
- This update removes two unofficial settings, nothing that will go amiss
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16011 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.h')
-rw-r--r-- | src/map/unit.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/unit.h b/src/map/unit.h index 6a0bf26f6..11f5fba0e 100644 --- a/src/map/unit.h +++ b/src/map/unit.h @@ -27,6 +27,7 @@ struct unit_data { int skilltarget; int skilltimer; int target; + int target_to; int attacktimer; int walktimer; int chaserange; @@ -35,6 +36,7 @@ struct unit_data { unsigned int canmove_tick; uint8 dir; unsigned char walk_count; + unsigned char target_count; struct { unsigned change_walk_target : 1 ; unsigned skillcastcancel : 1 ; @@ -113,7 +115,8 @@ int unit_skilluse_pos2( struct block_list *src, short skill_x, short skill_y, sh // 詠唱キャンセル int unit_skillcastcancel(struct block_list *bl,int type); -int unit_counttargeted(struct block_list *bl,int target_lv); +int unit_counttargeted(struct block_list *bl); +int unit_set_target(struct unit_data* ud, int target_id); // unit_data の初期化処理 void unit_dataset(struct block_list *bl); |