Mercurial > hg > early-roguelike
comparison xrogue/monsters.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 | 7c1cb43f346e |
| children | 28e22fb35989 |
comparison
equal
deleted
inserted
replaced
| 303:e06ebc407615 | 304:e52a8a7ad4c5 |
|---|---|
| 231 tp->t_doorgoal.x = tp->t_doorgoal.y = -1; | 231 tp->t_doorgoal.x = tp->t_doorgoal.y = -1; |
| 232 tp->t_quiet = 0; | 232 tp->t_quiet = 0; |
| 233 tp->t_dest = NULL; | 233 tp->t_dest = NULL; |
| 234 tp->t_name = NULL; | 234 tp->t_name = NULL; |
| 235 tp->t_pos = tp->t_oldpos = *cp; | 235 tp->t_pos = tp->t_oldpos = *cp; |
| 236 tp->t_oldch = mvwinch(cw, cp->y, cp->x); | 236 tp->t_oldch = mvwinch(cw, cp->y, cp->x) & A_CHARTEXT; |
| 237 mvwaddch(mw, cp->y, cp->x, tp->t_type); | 237 mvwaddch(mw, cp->y, cp->x, tp->t_type); |
| 238 mp = &monsters[tp->t_index]; | 238 mp = &monsters[tp->t_index]; |
| 239 | 239 |
| 240 /* Figure out monster's hit points */ | 240 /* Figure out monster's hit points */ |
| 241 hitp = mp->m_stats.ms_hpt; | 241 hitp = mp->m_stats.ms_hpt; |
