Mercurial > hg > early-roguelike
comparison arogue7/sticks.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 | e1cd27c5464f |
children | 2f0eb38da609 |
comparison
equal
deleted
inserted
replaced
303:e06ebc407615 | 304:e52a8a7ad4c5 |
---|---|
89 | 89 |
90 do { | 90 do { |
91 y += direction->y; | 91 y += direction->y; |
92 x += direction->x; | 92 x += direction->x; |
93 } | 93 } |
94 while (shoot_ok(winat(y, x)) && !(y == hero.y && x == hero.x)); | 94 while (shoot_ok(CCHAR( winat(y, x)) ) && |
95 !(y == hero.y && x == hero.x)); | |
95 | 96 |
96 if (y == hero.y && x == hero.x) | 97 if (y == hero.y && x == hero.x) |
97 is_player = TRUE; | 98 is_player = TRUE; |
98 else if (isalpha(mvwinch(mw, y, x))) { | 99 else if (isalpha(mvwinch(mw, y, x))) { |
99 item = find_mons(y, x); | 100 item = find_mons(y, x); |