Make the code match the comments. I'm sure I checked that
forwards and backwards when I put it in; I don't know how it ended
up mismatched.
-/* SCCS Id: @(#)weapon.c 3.4 2000/09/17 */
+/* SCCS Id: @(#)weapon.c 3.4 2002/02/07 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
*/
bonus = P_SKILL(type);
bonus = max(bonus,P_UNSKILLED) - 1; /* unskilled => 0 */
- bonus = (bonus * (martial_bonus() ? 2 : 1)) / 2;
+ bonus = ((bonus + 2) * (martial_bonus() ? 2 : 1)) / 2;
}
#ifdef STEED