From f609bb01f2638208401f68419c25ca9b4c221859 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 23 Sep 2018 14:01:47 +0200 Subject: [PATCH] unused variable is never read. --- src/battle.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/battle.c b/src/battle.c index 1e256f9ca..8e8c3610b 100644 --- a/src/battle.c +++ b/src/battle.c @@ -3865,7 +3865,6 @@ static void battle_flee(battle * b) for (fig = s->fighters; fig; fig = fig->next) { unit *u = fig->unit; troop dt; - int runners = 0; /* Flucht nicht bei mehr als 600 HP. Damit Wyrme t�tbar bleiben. */ int runhp = (int)(0.9 + unit_max_hp(u) * hpflee(u->status)); if (runhp > 600) runhp = 600; @@ -3912,7 +3911,6 @@ static void battle_flee(battle * b) ispaniced = EFFECT_PANIC_SPELL; } if (chance(fmin(fleechance(u) + ispaniced, 0.90))) { - ++runners; flee(dt); } }