Mercurial > hg > early-roguelike
comparison rogue3/weapons.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 | 0250220d8cdd |
| children |
comparison
equal
deleted
inserted
replaced
| 303:e06ebc407615 | 304:e52a8a7ad4c5 |
|---|---|
| 172 } | 172 } |
| 173 attach(lvl_obj, item); | 173 attach(lvl_obj, item); |
| 174 return; | 174 return; |
| 175 } | 175 } |
| 176 if (pr) | 176 if (pr) |
| 177 { | |
| 177 if (obj->o_type == WEAPON) /* BUGFUX: Identification trick */ | 178 if (obj->o_type == WEAPON) /* BUGFUX: Identification trick */ |
| 178 msg("Your %s vanishes as it hits the ground.", w_names[obj->o_which]); | 179 msg("Your %s vanishes as it hits the ground.", w_names[obj->o_which]); |
| 179 else | 180 else |
| 180 msg("%s vanishes as it hits the ground.", inv_name(obj,TRUE)); | 181 msg("%s vanishes as it hits the ground.", inv_name(obj,TRUE)); |
| 182 } | |
| 181 discard(item); | 183 discard(item); |
| 182 } | 184 } |
| 183 | 185 |
| 184 /* | 186 /* |
| 185 * init_weapon: | 187 * init_weapon: |
