summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorxazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-22 13:49:09 +0000
committerxazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-22 13:49:09 +0000
commit14c53cd601a6aba5811909ded3dae4992d707271 (patch)
tree63ed44e4ba7eab76e6fefb3a6b99b0812310361e /src/map/mob.c
parent44d7606656a650dc43018b5c63bb56ad1f70e77c (diff)
downloadhercules-14c53cd601a6aba5811909ded3dae4992d707271.tar.gz
hercules-14c53cd601a6aba5811909ded3dae4992d707271.tar.bz2
hercules-14c53cd601a6aba5811909ded3dae4992d707271.tar.xz
hercules-14c53cd601a6aba5811909ded3dae4992d707271.zip
Minor cleanups, mostly reducing scopes.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15504 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index acdfd5049..a079bbdf9 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1113,7 +1113,6 @@ static int mob_warpchase_sub(struct block_list *bl,va_list ap)
static int mob_ai_sub_hard_slavemob(struct mob_data *md,unsigned int tick)
{
struct block_list *bl;
- int old_dist;
bl=map_id2bl(md->master_id);
@@ -1126,7 +1125,8 @@ static int mob_ai_sub_hard_slavemob(struct mob_data *md,unsigned int tick)
if(status_get_mode(&md->bl)&MD_CANMOVE)
{ //If the mob can move, follow around. [Check by Skotlex]
-
+ int old_dist;
+
// Distance with between slave and master is measured.
old_dist=md->master_dist;
md->master_dist=distance_bl(&md->bl, bl);