summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/kills.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/kills.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/kills.cc')
-rw-r--r--crawl-ref/source/kills.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/kills.cc b/crawl-ref/source/kills.cc
index 02beb9a7e0..3f283606f9 100644
--- a/crawl-ref/source/kills.cc
+++ b/crawl-ref/source/kills.cc
@@ -57,15 +57,15 @@ const char *KillMaster::category_name(kill_category kc) const
{
if (kc >= KC_YOU && kc < KC_NCATEGORIES)
return (kill_category_names[kc]);
- return (NULL);
+ return NULL;
}
bool KillMaster::empty() const
{
for (int i = 0; i < KC_NCATEGORIES; ++i)
if (!categorized_kills[i].empty())
- return (false);
- return (true);
+ return false;
+ return true;
}
void KillMaster::save(writer& outf) const
@@ -117,7 +117,7 @@ int KillMaster::total_kills() const
int count = categorized_kills[i].get_kills(kills);
grandtotal += count;
}
- return (grandtotal);
+ return grandtotal;
}
std::string KillMaster::kill_info() const
@@ -338,7 +338,7 @@ int Kills::get_kills(std::vector<kill_exp> &all_kills) const
count += ghosts.size();
std::sort(all_kills.begin(), all_kills.end());
- return (count);
+ return count;
}
void Kills::save(writer& outf) const