From: PatR Date: Sat, 9 Sep 2017 23:32:30 +0000 (-0700) Subject: formatting bit X-Git-Tag: NetHack-3.6.1_RC01~384 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f15c7190a0b082f05d9f9aee7622c677099f132;p=nethack formatting bit The formatting bit actually warranted a cast. --- diff --git a/src/mhitm.c b/src/mhitm.c index 00ac76cb1..b267a96b0 100644 --- a/src/mhitm.c +++ b/src/mhitm.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 mhitm.c $NHDT-Date: 1496860757 2017/06/07 18:39:17 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.97 $ */ +/* NetHack 3.6 mhitm.c $NHDT-Date: 1504999944 2017/09/09 23:32:24 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.98 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -1275,6 +1275,7 @@ register struct attack *mattk; | (grow_up(magr, mdef) ? 0 : MM_AGR_DIED)); if (pa->mlet == S_NYMPH && !tele_restrict(magr)) { boolean couldspot = canspotmon(magr); + (void) rloc(magr, TRUE); if (vis && couldspot && !canspotmon(magr)) pline("%s suddenly disappears!", buf); @@ -1284,7 +1285,8 @@ register struct attack *mattk; break; case AD_DREN: if (!cancelled && !rn2(4)) - xdrainenergym(mdef, vis && canspotmon(mdef) && mattk->aatyp != AT_ENGL); + xdrainenergym(mdef, (boolean) (vis && canspotmon(mdef) + && mattk->aatyp != AT_ENGL)); tmp = 0; break; case AD_DRST: