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'
This commit is contained in:
nethack.allison
2002-07-06 16:26:35 +00:00
parent 24c368ac4a
commit efcf8f4d1c

View File

@@ -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 */