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.
This commit is contained in:
parent
6f21b5b88a
commit
6c3cd116ff
122 changed files with 374 additions and 280 deletions
|
|
@ -58,9 +58,7 @@ look(bool wakeup)
|
|||
register int passcount = 0;
|
||||
register char pfl, *fp, pch;
|
||||
register int sy, sx, sumhero = 0, diffhero = 0;
|
||||
register int oldx, oldy;
|
||||
|
||||
getyx(stdscr, oldy, oldx);
|
||||
rp = proom;
|
||||
if (!ce(oldpos, hero))
|
||||
{
|
||||
|
|
@ -115,12 +113,15 @@ look(bool wakeup)
|
|||
fp = &_flags[index];
|
||||
ch = _level[index];
|
||||
if (pch != DOOR && ch != DOOR)
|
||||
{
|
||||
if ((pfl & F_PASS) != (*fp & F_PASS))
|
||||
continue;
|
||||
else if ((*fp & F_PASS) && (*fp & F_PNUM) != (pfl & F_PNUM))
|
||||
continue;
|
||||
}
|
||||
|
||||
if ((tp = _monst[index]) != NULL)
|
||||
{
|
||||
if (on(player, SEEMONST) && on(*tp, ISINVIS))
|
||||
{
|
||||
if (door_stop && !firstmove)
|
||||
|
|
@ -137,6 +138,7 @@ look(bool wakeup)
|
|||
if (see_monst(tp))
|
||||
ch = tp->t_disguise;
|
||||
}
|
||||
}
|
||||
|
||||
move(y, x);
|
||||
if (ch != inch())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue