comparison arogue7/monsters.c @ 311:28e22fb35989

Fix one more batch of compiler warnings. A few of these were potential bugs.
author John "Elwin" Edwards
date Tue, 04 May 2021 21:03:47 -0400
parents e1cd27c5464f
children
comparison
equal deleted inserted replaced
310:827441d05b3e 311:28e22fb35989
592 } 592 }
593 593
594 /* 594 /*
595 * Every time he sees mean monster, it might start chasing him 595 * Every time he sees mean monster, it might start chasing him
596 */ 596 */
597 if (on(*tp, ISMEAN) && 597 if ((on(*tp, ISMEAN) &&
598 off(*tp, ISHELD) && 598 off(*tp, ISHELD) &&
599 off(*tp, ISRUN) && 599 off(*tp, ISRUN) &&
600 rnd(100) > 33 && 600 rnd(100) > 33 &&
601 (!is_stealth(&player) || (on(*tp, ISUNIQUE) && rnd(100) > 50)) && 601 (!is_stealth(&player) || (on(*tp, ISUNIQUE) && rnd(100) > 50)) &&
602 (off(player, ISINVIS) || on(*tp, CANSEE)) || 602 (off(player, ISINVIS) || on(*tp, CANSEE))) ||
603 (trp != NULL && (trp->r_flags & ISTREAS))) { 603 (trp != NULL && (trp->r_flags & ISTREAS))) {
604 runto(tp, &hero); 604 runto(tp, &hero);
605 } 605 }
606 606
607 /* 607 /*