Remove leftover variables

This commit is contained in:
Pasi Kallinen
2021-01-28 12:44:45 +02:00
parent 0b518d0cee
commit b502a7d9b2

View 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();