Mercurial > hg > early-roguelike
comparison xrogue/encumb.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 |
comparison
equal
deleted
inserted
replaced
303:e06ebc407615 | 304:e52a8a7ad4c5 |
---|---|
164 reg int dropchk, err = TRUE; | 164 reg int dropchk, err = TRUE; |
165 reg char ch; | 165 reg char ch; |
166 | 166 |
167 inwhgt = TRUE; | 167 inwhgt = TRUE; |
168 if (pstats.s_pack > pstats.s_carry) { | 168 if (pstats.s_pack > pstats.s_carry) { |
169 ch = mvwinch(stdscr, hero.y, hero.x); | 169 ch = mvwinch(stdscr, hero.y, hero.x) & A_CHARTEXT; |
170 if((ch != FLOOR && ch != PASSAGE)) { | 170 if((ch != FLOOR && ch != PASSAGE)) { |
171 extinguish(wghtchk); | 171 extinguish(wghtchk); |
172 fuse(wghtchk, NULL, 1, AFTER); | 172 fuse(wghtchk, NULL, 1, AFTER); |
173 inwhgt = FALSE; | 173 inwhgt = FALSE; |
174 return; | 174 return; |