build fix
authornethack.rankin <nethack.rankin>
Sat, 2 Mar 2002 06:16:37 +0000 (06:16 +0000)
committernethack.rankin <nethack.rankin>
Sat, 2 Mar 2002 06:16:37 +0000 (06:16 +0000)
     Some old compilers don't like to use the name of a function-like
macro for anything other than invoking that macro.

src/mcastu.c

index 1ac8ff68151aca945e5307e078f71bcbfa350b3e..8019b0d463de43443385a2acbb7345067642b7ba 100644 (file)
@@ -701,7 +701,7 @@ int adtyp;
      * This check isn't quite right because it always uses your real position.
      * We really want something like "if the monster could see mux, muy".
      */
-    boolean couldsee = couldsee(mtmp->mx, mtmp->my);
+    boolean mcouldseeu = couldsee(mtmp->mx, mtmp->my);
 
     if (adtyp == AD_SPEL) {
        /* aggravate monsters, etc. won't be cast by peaceful monsters */
@@ -724,7 +724,7 @@ int adtyp;
        if (mtmp->mhp == mtmp->mhpmax && spellnum == MGC_CURE_SELF)
            return TRUE;
        /* don't summon monsters if it doesn't think you're around */
-       if (!couldsee && (spellnum == MGC_SUMMON_MONS ||
+       if (!mcouldseeu && (spellnum == MGC_SUMMON_MONS ||
                (!mtmp->iswiz && spellnum == MGC_CLONE_WIZ)))
            return TRUE;
        if ((!mtmp->iswiz || flags.no_of_wizards > 1)
@@ -738,7 +738,7 @@ int adtyp;
        if (mtmp->mhp == mtmp->mhpmax && spellnum == CLC_CURE_SELF)
            return TRUE;
        /* don't summon insects if it doesn't think you're around */
-       if (!couldsee && spellnum == CLC_INSECTS)
+       if (!mcouldseeu && spellnum == CLC_INSECTS)
            return TRUE;
        /* blindness spell on blinded player */
        if (Blinded && spellnum == CLC_BLIND_YOU)