comparison arogue7/chase.c @ 304:e52a8a7ad4c5

Fix many compiler warnings. There should only be two changes in behavior: arogue7/fight.c, arogue7/fight.c: a to-hit bonus is now correctly applied to characters who are not monks instead of monks who are not empty-handed. urogue/fight.c: fixed an interaction with the "debug" macro that could cause the wrong message to be displayed.
author John "Elwin" Edwards
date Wed, 14 Apr 2021 18:55:33 -0400
parents f9ef86cf22b2
children
comparison
equal deleted inserted replaced
303:e06ebc407615 304:e52a8a7ad4c5
63 */ 63 */
64 if (x<0 || x >= cols || index == 4) continue; 64 if (x<0 || x >= cols || index == 4) continue;
65 65
66 /* Is it OK to move there? */ 66 /* Is it OK to move there? */
67 if (step_ok(y, x, NOMONST, tp) && 67 if (step_ok(y, x, NOMONST, tp) &&
68 (!isatrap(mvwinch(cw, y, x)) || 68 (!isatrap(CCHAR( mvwinch(cw, y, x) )) ||
69 rnd(10) >= tp->t_stats.s_intel || 69 rnd(10) >= tp->t_stats.s_intel ||
70 on(*tp, ISFLY))) { 70 on(*tp, ISFLY))) {
71 /* OK, we can go here. But don't go there if 71 /* OK, we can go here. But don't go there if
72 * monster can't get at player from there 72 * monster can't get at player from there
73 */ 73 */