]> granicus.if.org Git - nethack/commitdiff
Remove leftover variables
authorPasi Kallinen <paxed@alt.org>
Thu, 28 Jan 2021 10:44:45 +0000 (12:44 +0200)
committerPasi Kallinen <paxed@alt.org>
Thu, 28 Jan 2021 10:44:45 +0000 (12:44 +0200)
src/uhitm.c

index 5a8e54b021cde4b1c7d86e094a613b370f1db5d3..3456259f29ef6b600a8028e07b2cc6efacfeb1a0 100644 (file)
@@ -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();