diff options
author | xazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-01-22 13:49:09 +0000 |
---|---|---|
committer | xazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-01-22 13:49:09 +0000 |
commit | 14c53cd601a6aba5811909ded3dae4992d707271 (patch) | |
tree | 63ed44e4ba7eab76e6fefb3a6b99b0812310361e /src/map/unit.c | |
parent | 44d7606656a650dc43018b5c63bb56ad1f70e77c (diff) | |
download | hercules-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/unit.c')
-rw-r--r-- | src/map/unit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 631fc049a..950ffc983 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -665,12 +665,12 @@ uint8 unit_getdir(struct block_list *bl) // &1 Do not send position update packets. int unit_blown(struct block_list* bl, int dx, int dy, int count, int flag) { - int nx, ny, result; - struct map_session_data* sd; - struct skill_unit* su = NULL; - if(count) { + struct map_session_data* sd; + struct skill_unit* su = NULL; + int nx, ny, result; + sd = BL_CAST(BL_PC, bl); su = BL_CAST(BL_SKILL, bl); |