From: Pasi Kallinen Date: Tue, 1 Dec 2020 17:36:19 +0000 (+0200) Subject: Init the done variable to false X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f6a7a5eef2e964d229fbe7f44ea8693438bc3c7;p=nethack Init the done variable to false --- diff --git a/src/mhitm.c b/src/mhitm.c index 6b182d093..f86843035 100644 --- a/src/mhitm.c +++ b/src/mhitm.c @@ -865,6 +865,7 @@ int dieroll; mhm.permdmg = 0; mhm.specialdmg = 0; mhm.dieroll = dieroll; + mhm.done = FALSE; if ((touch_petrifies(pd) /* or flesh_petrifies() */ || (mattk->adtyp == AD_DGST && pd == &mons[PM_MEDUSA])) diff --git a/src/mhitu.c b/src/mhitu.c index ba628651b..89d77dd2d 100644 --- a/src/mhitu.c +++ b/src/mhitu.c @@ -972,6 +972,7 @@ register struct attack *mattk; mhm.hitflags = MM_MISS; mhm.permdmg = 0; mhm.specialdmg = 0; + mhm.done = FALSE; if (!canspotmon(mtmp)) map_invisible(mtmp->mx, mtmp->my); diff --git a/src/uhitm.c b/src/uhitm.c index c78032972..470bb02cb 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -4185,6 +4185,7 @@ int specialdmg; /* blessed and/or silver bonus against various things */ mhm.hitflags = MM_MISS; mhm.permdmg = 0; mhm.specialdmg = specialdmg; + mhm.done = FALSE; armpro = magic_negation(mdef); /* since hero can't be cancelled, only defender's armor applies */