Mercurial > hg > early-roguelike
comparison srogue/misc.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 | 94a0d9dd5ce1 |
children |
comparison
equal
deleted
inserted
replaced
303:e06ebc407615 | 304:e52a8a7ad4c5 |
---|---|
131 it = find_mons(y, x); | 131 it = find_mons(y, x); |
132 if (it == NULL) /* lost monster */ | 132 if (it == NULL) /* lost monster */ |
133 mvaddch(y, x, FLOOR); | 133 mvaddch(y, x, FLOOR); |
134 else { | 134 else { |
135 tp = THINGPTR(it); | 135 tp = THINGPTR(it); |
136 if (isatrap(tp->t_oldch = mvinch(y, x))) { | 136 if (isatrap(tp->t_oldch = mvinch(y, x) & A_CHARTEXT)) { |
137 struct trap *trp; | 137 struct trap *trp; |
138 | 138 |
139 if ((trp = trap_at(y,x)) == NULL) | 139 if ((trp = trap_at(y,x)) == NULL) |
140 break; | 140 break; |
141 if (trp->tr_flags & ISFOUND) | 141 if (trp->tr_flags & ISFOUND) |