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/clif.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/clif.c')
-rw-r--r-- | src/map/clif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index e102fc169..fd14f4458 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -4423,7 +4423,7 @@ int clif_outsight(struct block_list *bl,va_list ap) if (sd && sd->fd) { //sd is watching tbl go out of view. if (((vd=status_get_viewdata(tbl)) && vd->class_ != INVISIBLE_CLASS) && - !(bl->type == BL_NPC && (((TBL_NPC*)bl)->sc.option&OPTION_INVISIBLE))) + !(tbl->type == BL_NPC && (((TBL_NPC*)tbl)->sc.option&OPTION_INVISIBLE))) clif_clearunit_single(tbl->id,CLR_OUTSIGHT,sd->fd); } return 0; @@ -10652,7 +10652,6 @@ void clif_parse_UseSkillToId(int fd, struct map_session_data *sd) *------------------------------------------*/ static void clif_parse_UseSkillToPosSub(int fd, struct map_session_data *sd, short skilllv, short skillnum, short x, short y, int skillmoreinfo) { - int lv; unsigned int tick = gettick(); if( !(skill_get_inf(skillnum)&INF_GROUND_SKILL) ) @@ -10716,6 +10715,7 @@ static void clif_parse_UseSkillToPosSub(int fd, struct map_session_data *sd, sho } else { + int lv; sd->skillitem = sd->skillitemlv = 0; if( (lv = pc_checkskill(sd, skillnum)) > 0 ) { |