From: Pasi Kallinen Date: Thu, 28 Jan 2021 10:44:45 +0000 (+0200) Subject: Remove leftover variables X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b502a7d9b28d153415e5ce5cb84bd3fed332a691;p=nethack Remove leftover variables --- diff --git a/src/uhitm.c b/src/uhitm.c index 5a8e54b02..3456259f2 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -4043,8 +4043,6 @@ int damageum(struct monst *mdef, struct attack *mattk, int specialdmg) /* blessed and/or silver bonus against various things */ { - int armpro; - boolean negated; struct mhitm_data mhm; mhm.damage = d((int) mattk->damn, (int) mattk->damd); mhm.hitflags = MM_MISS; @@ -4052,10 +4050,6 @@ damageum(struct monst *mdef, struct attack *mattk, mhm.specialdmg = specialdmg; mhm.done = FALSE; - armpro = magic_negation(mdef); - /* since hero can't be cancelled, only defender's armor applies */ - negated = !(rn2(10) >= 3 * armpro); - if (is_demon(g.youmonst.data) && !rn2(13) && !uwep && u.umonnum != PM_AMOROUS_DEMON && u.umonnum != PM_BALROG) { demonpet();