comparison arogue7/move.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 28e22fb35989
comparison
equal deleted inserted replaced
303:e06ebc407615 304:e52a8a7ad4c5
1750 return (trp->tr_flags & ISFOUND) ? ch : trp->tr_show; 1750 return (trp->tr_flags & ISFOUND) ? ch : trp->tr_show;
1751 } 1751 }
1752 else if (isalpha(ch)) { 1752 else if (isalpha(ch)) {
1753 if ((it = find_mons(y, x)) == NULL) { 1753 if ((it = find_mons(y, x)) == NULL) {
1754 msg("Show: Can't find monster in show (%d, %d)", y, x); 1754 msg("Show: Can't find monster in show (%d, %d)", y, x);
1755 return(mvwinch(stdscr, y, x)); 1755 return(CCHAR( mvwinch(stdscr, y, x) ));
1756 } 1756 }
1757 tp = THINGPTR(it); 1757 tp = THINGPTR(it);
1758 1758
1759 if (on(*tp, ISDISGUISE)) ch = tp->t_disguise; /* As a mimic */ 1759 if (on(*tp, ISDISGUISE)) ch = tp->t_disguise; /* As a mimic */
1760 1760