From fda365cd84800732937425bcb04762de8e3179e8 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 10 May 2012 03:34:48 +0200 Subject: [PATCH] Remove some unused variables to make gcc happy. --- src/spells/combatspells.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/spells/combatspells.c b/src/spells/combatspells.c index 0493c3821..344bac060 100644 --- a/src/spells/combatspells.c +++ b/src/spells/combatspells.c @@ -290,7 +290,6 @@ int sp_combatrosthauch(struct castorder * co) fighter * fi = co->magician.fig; int level = co->level; double power = co->force; - const spell * sp = co->sp; battle *b = fi->side->battle; quicklist *ql, *fgs; int force = lovar(power * 15); @@ -380,7 +379,6 @@ int sp_sleep(struct castorder * co) { fighter * fi = co->magician.fig; int level = co->level; - double power = co->force; const spell * sp = co->sp; battle *b = fi->side->battle; unit *mage = fi->unit; @@ -391,7 +389,7 @@ int sp_sleep(struct castorder * co) message *m; /* Immer aus der ersten Reihe nehmen */ - force = lovar(power * 25); + force = lovar(co->force * 25); enemies = count_enemies(b, fi, FIGHT_ROW, BEHIND_ROW, SELECT_ADVANCE); if (!enemies) { @@ -795,7 +793,6 @@ int sp_shadowcall(struct castorder * co) fighter * fi = co->magician.fig; int level = co->level; double power = co->force; - const spell * sp = co->sp; battle *b = fi->side->battle; region *r = b->region; unit *mage = fi->unit; @@ -834,7 +831,6 @@ int sp_wolfhowl(struct castorder * co) fighter * fi = co->magician.fig; int level = co->level; double power = co->force; - const spell * sp = co->sp; battle *b = fi->side->battle; region *r = b->region; unit *mage = fi->unit; @@ -878,7 +874,6 @@ int sp_shadowknights(struct castorder * co) fighter * fi = co->magician.fig; int level = co->level; double power = co->force; - const spell * sp = co->sp; unit *u; battle *b = fi->side->battle; region *r = b->region; @@ -919,7 +914,6 @@ int sp_strong_wall(struct castorder * co) fighter * fi = co->magician.fig; int level = co->level; double power = co->force; - const spell * sp = co->sp; battle *b = fi->side->battle; unit *mage = fi->unit; building *burg; @@ -1378,7 +1372,6 @@ int sp_reeling_arrows(struct castorder * co) { fighter * fi = co->magician.fig; int level = co->level; - double power = co->force; const spell * sp = co->sp; battle *b = fi->side->battle; message *m; @@ -1399,7 +1392,7 @@ int sp_denyattack(struct castorder * co) { fighter * fi = co->magician.fig; int level = co->level; - double power = co->force; + const spell * sp = co->sp; battle *b = fi->side->battle; unit *mage = fi->unit;