diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 12:36:13 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 13:03:13 +0200 |
commit | 9042de61fb4f05a9da01d470ef325d6c6381dd28 (patch) | |
tree | 9801b1dfd90fd296dbfe8a4f20f269913bf5550c /crawl-ref/source/player-stats.cc | |
parent | 53671ccab2db8416aa16b9df6ba799e0cfaa78dd (diff) | |
download | crawl-ref-9042de61fb4f05a9da01d470ef325d6c6381dd28.tar.gz crawl-ref-9042de61fb4f05a9da01d470ef325d6c6381dd28.zip |
Remove parentheses around return (simple_function_call).
For way too paranoid and underinclusive values of "simple".
Diffstat (limited to 'crawl-ref/source/player-stats.cc')
-rw-r--r-- | crawl-ref/source/player-stats.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/player-stats.cc b/crawl-ref/source/player-stats.cc index 161a74548d..135b64dbf5 100644 --- a/crawl-ref/source/player-stats.cc +++ b/crawl-ref/source/player-stats.cc @@ -27,39 +27,39 @@ int player::stat(stat_type s, bool nonneg) const int player::strength() const { - return (stat(STAT_STR)); + return stat(STAT_STR); } int player::intel() const { - return (stat(STAT_INT)); + return stat(STAT_INT); } int player::dex() const { - return (stat(STAT_DEX)); + return stat(STAT_DEX); } static int _stat_modifier(stat_type stat); int player::max_stat(stat_type s) const { - return (std::min(base_stats[s] + _stat_modifier(s), 72)); + return std::min(base_stats[s] + _stat_modifier(s), 72); } int player::max_strength() const { - return (max_stat(STAT_STR)); + return max_stat(STAT_STR); } int player::max_intel() const { - return (max_stat(STAT_INT)); + return max_stat(STAT_INT); } int player::max_dex() const { - return (max_stat(STAT_DEX)); + return max_stat(STAT_DEX); } static void _handle_stat_change(stat_type stat, const char *aux = NULL, |