summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-zap.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-07-05 12:14:09 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-07-05 12:14:09 +0200
commitc41419c4f47bbf0737d3fedf58128c835d2c4e3b (patch)
tree764ae18c107df39fd90af718922036bd245561ca /crawl-ref/source/spl-zap.cc
parentb80adef8882143cad34f3c8bcc9a8ccbd4440223 (diff)
downloadcrawl-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.cc8
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;
}
}