bare-handed combat warning fix

This commit is contained in:
PatR
2023-07-31 10:26:37 -07:00
parent 7cec01748e
commit af387db16d
+2 -2
View File
@@ -839,8 +839,8 @@ hmon_hitmon_barehands(struct _hitmon_data *hmd, struct monst *mon)
compatibility => playability), but when making two hits, only the compatibility => playability), but when making two hits, only the
ring on the hand making the attack is checked. */ ring on the hand making the attack is checked. */
spcdmgflg = uarmg ? W_ARMG spcdmgflg = uarmg ? W_ARMG
: ((hmd->twohits == 0 || hmd->twohits == 1) ? W_RINGR : 0L : (((hmd->twohits == 0 || hmd->twohits == 1) ? W_RINGR : 0L)
| (hmd->twohits == 0 || hmd->twohits == 2) ? W_RINGL : 0L); | ((hmd->twohits == 0 || hmd->twohits == 2) ? W_RINGL : 0L));
hmd->dmg += special_dmgval(&gy.youmonst, mon, spcdmgflg, &silverhit); hmd->dmg += special_dmgval(&gy.youmonst, mon, spcdmgflg, &silverhit);
/* copy silverhit info back into struct _hitmon_data *hmd */ /* copy silverhit info back into struct _hitmon_data *hmd */