Mercurial > hg > early-roguelike
comparison xrogue/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 | e52a8a7ad4c5 |
| children |
comparison
equal
deleted
inserted
replaced
| 310:827441d05b3e | 311:28e22fb35989 |
|---|---|
| 628 } | 628 } |
| 629 | 629 |
| 630 /* | 630 /* |
| 631 * Every time he sees mean monster, it might start chasing him | 631 * Every time he sees mean monster, it might start chasing him |
| 632 */ | 632 */ |
| 633 if (on(*tp, ISMEAN) && | 633 if ((on(*tp, ISMEAN) && |
| 634 off(*tp, ISHELD) && | 634 off(*tp, ISHELD) && |
| 635 off(*tp, ISRUN) && | 635 off(*tp, ISRUN) && |
| 636 rnd(100) > 35 && | 636 rnd(100) > 35 && |
| 637 (!is_stealth(&player) || (on(*tp, ISUNIQUE) && rnd(100) > 35)) && | 637 (!is_stealth(&player) || (on(*tp, ISUNIQUE) && rnd(100) > 35)) && |
| 638 (off(player, ISINVIS) || on(*tp, CANSEE)) || | 638 (off(player, ISINVIS) || on(*tp, CANSEE))) || |
| 639 (trp != NULL && (trp->r_flags & ISTREAS))) { | 639 (trp != NULL && (trp->r_flags & ISTREAS))) { |
| 640 runto(tp, &hero); | 640 runto(tp, &hero); |
| 641 } | 641 } |
| 642 | 642 |
| 643 /* | 643 /* |
