[Patchhack-devel] [ patchhack-Bugs-514032 ] Incorrect formula for reading spellbooks
Brought to you by:
jdorje
From: <no...@so...> - 2002-02-06 23:44:22
|
Bugs item #514032, was opened at 2002-02-06 15:44 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=424867&aid=514032&group_id=39321 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Incorrect formula for reading spellbooks Initial Comment: The formula: == int read_ability = ACURR(A_INT) + 4 + u.ulevel/2 - 2*objects[booktype].oc_level + (ublindf && ublindf->otyp == LENSES) ? 2 : 0; == returns either 2 or 0, due to the extremely low precedence of the conditional operator. This makes successfully reading spellbooks, for any character, extremely difficult. This bug could be fixed by the proper use of parentheses. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=424867&aid=514032&group_id=39321 |