diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 12:14:09 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 12:14:09 +0200 |
commit | c41419c4f47bbf0737d3fedf58128c835d2c4e3b (patch) | |
tree | 764ae18c107df39fd90af718922036bd245561ca /crawl-ref/source/spl-zap.cc | |
parent | b80adef8882143cad34f3c8bcc9a8ccbd4440223 (diff) | |
download | crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.tar.gz crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.zip |
Drop parentheses around scalar values in "return".
Diffstat (limited to 'crawl-ref/source/spl-zap.cc')
-rw-r--r-- | crawl-ref/source/spl-zap.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/spl-zap.cc b/crawl-ref/source/spl-zap.cc index 05c2b0cb77..95ea5fb7d2 100644 --- a/crawl-ref/source/spl-zap.cc +++ b/crawl-ref/source/spl-zap.cc @@ -119,7 +119,7 @@ int spell_zap_power(spell_type spell, int pow) case SPELL_HIBERNATION: return (stepdown_value(pow * 9 / 10, 5, 35, 45, 50)); default: - return (pow); + return pow; } } @@ -128,7 +128,7 @@ int spell_zap_power_cap(spell_type spell) const zap_type zap = spell_to_zap(spell); if (zap == NUM_ZAPS) - return (0); + return 0; const int cap = zap_power_cap(zap); @@ -137,8 +137,8 @@ int spell_zap_power_cap(spell_type spell) case SPELL_CORONA: return (std::max<int>(cap - 10, 0)); case SPELL_HIBERNATION: - return (50); + return 50; default: - return (cap); + return cap; } } |