summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-17 19:55:17 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-17 19:55:17 +0000
commit28ce4da81258c2c23ab03ae4ca19aa9141a94a5c (patch)
treee2755223b7e3a2fabbb4a82d5d78baff394d046f /src/map/skill.c
parent594346f71e2c1832835fd9d59638dc1d40bdb628 (diff)
downloadhercules-28ce4da81258c2c23ab03ae4ca19aa9141a94a5c.tar.gz
hercules-28ce4da81258c2c23ab03ae4ca19aa9141a94a5c.tar.bz2
hercules-28ce4da81258c2c23ab03ae4ca19aa9141a94a5c.tar.xz
hercules-28ce4da81258c2c23ab03ae4ca19aa9141a94a5c.zip
fixed gcc warning, removed unused variable 'flag'
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15697 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index a449fda01..da61c1f8c 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -8730,13 +8730,11 @@ int skill_castend_pos2(struct block_list* src, int x, int y, int skillid, int sk
map_foreachinarea(skill_graffitiremover,src->m,x-i,y-i,x+i,y+i,BL_SKILL);
break;
- case WZ_METEOR:
- {
- int flag = 0, area = skill_get_splash(skillid, skilllv);
+ case WZ_METEOR: {
+ int area = skill_get_splash(skillid, skilllv);
short tmpx = 0, tmpy = 0, x1 = 0, y1 = 0;
- for( i = 0; i < 2 + (skilllv>>1); i++ )
- {
+ for( i = 0; i < 2 + (skilllv>>1); i++ ) {
// Creates a random Cell in the Splash Area
tmpx = x - area + rnd()%(area * 2 + 1);
tmpy = y - area + rnd()%(area * 2 + 1);