diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-11 04:10:41 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-11 04:10:41 +0000 |
commit | 96145e78a56a090e60a77c09147d2cb0991fda2d (patch) | |
tree | 174455953b53d4e37c4e26ef8ada4989659c6f8d /src/map/battle.c | |
parent | c31d5fe703c5ab30a398ef7da9059f4e20b7891d (diff) | |
download | hercules-96145e78a56a090e60a77c09147d2cb0991fda2d.tar.gz hercules-96145e78a56a090e60a77c09147d2cb0991fda2d.tar.bz2 hercules-96145e78a56a090e60a77c09147d2cb0991fda2d.tar.xz hercules-96145e78a56a090e60a77c09147d2cb0991fda2d.zip |
- Multiple optimizations to the unit_data auto-chase upgrade, also simplified the mob and pet ai routines.
- Simplified the walk routines to half the number of timers required for walking.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5982 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 514adeec7..0a3d528c2 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -69,7 +69,7 @@ static int battle_gettargeted_sub(struct block_list *bl, va_list ap) ud = unit_bl2ud(bl);
if (!ud) return 0;
- if (ud->attacktarget == target_id || ud->skilltarget == target_id) {
+ if (ud->target == target_id || ud->skilltarget == target_id) {
bl_list[(*c)++] = bl;
return 1;
}
@@ -96,7 +96,7 @@ int battle_gettarget(struct block_list *bl) switch (bl->type)
{
case BL_PC:
- return ((struct map_session_data*)bl)->ud.attacktarget;
+ return ((struct map_session_data*)bl)->ud.target;
case BL_MOB:
return ((struct mob_data*)bl)->target_id;
case BL_PET:
|