build warning

- remove an unreferenced variable
- continue with recent code trend towards having DEADMONSTER()
  check in its own if/continue statement in a few more places
This commit is contained in:
nethack.allison
2006-06-11 18:27:55 +00:00
parent 8edb0772d8
commit f139b67e43
5 changed files with 26 additions and 15 deletions

View File

@@ -75,8 +75,9 @@ amulet()
if (!context.no_of_wizards)
return;
/* find Wizard, and wake him if necessary */
for(mtmp = fmon; mtmp; mtmp = mtmp->nmon)
if (!DEADMONSTER(mtmp) && mtmp->iswiz && mtmp->msleeping && !rn2(40)) {
for(mtmp = fmon; mtmp; mtmp = mtmp->nmon) {
if (DEADMONSTER(mtmp)) continue;
if (mtmp->iswiz && mtmp->msleeping && !rn2(40)) {
mtmp->msleeping = 0;
if (distu(mtmp->mx,mtmp->my) > 2)
You(
@@ -84,6 +85,7 @@ amulet()
);
return;
}
}
}
int