Mercurial > hg > early-roguelike
comparison srogue/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 | 94a0d9dd5ce1 |
children |
comparison
equal
deleted
inserted
replaced
303:e06ebc407615 | 304:e52a8a7ad4c5 |
---|---|
139 attach(lvl_obj, item); | 139 attach(lvl_obj, item); |
140 return; | 140 return; |
141 } | 141 } |
142 | 142 |
143 if (pr) | 143 if (pr) |
144 if (obj->o_type == WEAPON) /* BUGFIX: Identification trick */ | 144 { |
145 msg("Your %s vanishes as it hits the ground.", w_magic[obj->o_which].mi_name); | 145 if (obj->o_type == WEAPON) /* BUGFIX: Identification trick */ |
146 else | 146 msg("Your %s vanishes as it hits the ground.", w_magic[obj->o_which].mi_name); |
147 msg("%s vanishes as it hits the ground.", inv_name(obj,TRUE)); | 147 else |
148 msg("%s vanishes as it hits the ground.", inv_name(obj,TRUE)); | |
149 } | |
148 | 150 |
149 discard(item); | 151 discard(item); |
150 } | 152 } |
151 | 153 |
152 /* | 154 /* |