Fix one more batch of compiler warnings.
A few of these were potential bugs.
This commit is contained in:
parent
3dfd8fd09b
commit
06cad9ee1e
14 changed files with 30 additions and 27 deletions
|
|
@ -770,12 +770,12 @@ wake_monster(int y, int x)
|
|||
/*
|
||||
* Every time he sees mean monster, it might start chasing him
|
||||
*/
|
||||
if (on(*tp, ISMEAN) &&
|
||||
if ((on(*tp, ISMEAN) &&
|
||||
off(*tp, ISHELD) &&
|
||||
off(*tp, ISRUN) &&
|
||||
rnd(100) > 33 &&
|
||||
(!is_stealth(&player) || (on(*tp, ISUNIQUE) && rnd(100) > 95)) &&
|
||||
(off(player, ISINVIS) || on(*tp, CANSEE)) ||
|
||||
(off(player, ISINVIS) || on(*tp, CANSEE))) ||
|
||||
(trp != NULL && (trp->r_flags & ISTREAS))) {
|
||||
tp->t_dest = &hero;
|
||||
turn_on(*tp, ISRUN);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue