From efcf8f4d1c6b8145b4d080aafe3f21cf7b6d3852 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Sat, 6 Jul 2002 16:26:35 +0000 Subject: [PATCH] avoid some glitches with a handheld compiler I was trying out src\muse.c(904) : error C2143: syntax error : missing ';' before '__try' src\muse.c(904) : warning C4091: ' ' : ignored on left of 'int ' when no variable is declared src\muse.c(904) : error C2059: syntax error : '=' src\muse.c(916) : error C2059: syntax error : '__try' --- src/muse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/muse.c b/src/muse.c index 36189a407..505a58323 100644 --- a/src/muse.c +++ b/src/muse.c @@ -901,7 +901,7 @@ struct monst *mtmp; { struct permonst *pm = mtmp->data; int difficulty = monstr[(monsndx(pm))]; - int try = 0; + int trycnt = 0; if(is_animal(pm) || attacktype(pm, AT_EXPL) || mindless(mtmp->data) || pm->mlet == S_GHOST @@ -913,7 +913,7 @@ struct monst *mtmp; switch (rn2(8 + (difficulty > 3) + (difficulty > 6) + (difficulty > 8))) { case 6: case 9: - if (level.flags.noteleport && ++try < 2) + if (level.flags.noteleport && ++trycnt < 2) goto try_again; if (!rn2(3)) return WAN_TELEPORTATION; /* else FALLTHRU */ -- 2.40.0