Mercurial > hg > early-roguelike
comparison arogue5/player.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 | 56e748983fa8 |
| children |
comparison
equal
deleted
inserted
replaced
| 303:e06ebc407615 | 304:e52a8a7ad4c5 |
|---|---|
| 520 } | 520 } |
| 521 | 521 |
| 522 if ((item = find_mons(new_pos.y, new_pos.x)) == NULL) | 522 if ((item = find_mons(new_pos.y, new_pos.x)) == NULL) |
| 523 debug("Steal from what @ %d,%d?", new_pos.y, new_pos.x); | 523 debug("Steal from what @ %d,%d?", new_pos.y, new_pos.x); |
| 524 tp = THINGPTR(item); | 524 tp = THINGPTR(item); |
| 525 if (isinvisible = invisible(tp)) mname = "creature"; | 525 if ( (isinvisible = invisible(tp)) ) mname = "creature"; |
| 526 else mname = monsters[tp->t_index].m_name; | 526 else mname = monsters[tp->t_index].m_name; |
| 527 | 527 |
| 528 /* Can player steal something unnoticed? */ | 528 /* Can player steal something unnoticed? */ |
| 529 if (player.t_ctype == C_THIEF) thief_bonus = 10; | 529 if (player.t_ctype == C_THIEF) thief_bonus = 10; |
| 530 if (on(*tp, ISUNIQUE)) thief_bonus -= 15; | 530 if (on(*tp, ISUNIQUE)) thief_bonus -= 15; |
