diff options
author | Neil Moore <neil@s-z.org> | 2013-11-15 17:26:11 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-11-15 17:26:11 -0500 |
commit | e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68 (patch) | |
tree | ec3e4b86d3b4ed96250f735b4e597e83ee886de8 /crawl-ref/source/spl-book.cc | |
parent | b65bf4d5198c19095e3084a88983680df19ec5ee (diff) | |
download | crawl-ref-e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68.tar.gz crawl-ref-e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68.zip |
More formatting fixes for return (...);
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r-- | crawl-ref/source/spl-book.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc index 43cde19db2..dd72c1f721 100644 --- a/crawl-ref/source/spl-book.cc +++ b/crawl-ref/source/spl-book.cc @@ -905,7 +905,7 @@ static bool _sort_mem_spells(spell_type a, spell_type b) return fail_rate_a < fail_rate_b; if (spell_difficulty(a) != spell_difficulty(b)) - return (spell_difficulty(a) < spell_difficulty(b)); + return spell_difficulty(a) < spell_difficulty(b); return strcasecmp(spell_title(a), spell_title(b)) < 0; } @@ -1419,7 +1419,7 @@ int rod_spell(int rod) you.wield_change = true; you.turn_is_over = true; - return (roll_dice(1, 1 + spell_difficulty(spell) / 2)); + return roll_dice(1, 1 + spell_difficulty(spell) / 2); } static bool _compare_spells(spell_type a, spell_type b) @@ -2538,8 +2538,8 @@ bool book_has_title(const item_def &book) if (!is_artefact(book)) return false; - return (book.props.exists("is_named") - && book.props["is_named"].get_bool() == true); + return book.props.exists("is_named") + && book.props["is_named"].get_bool() == true; } void destroy_spellbook(const item_def &book) |