summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/place.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-14 17:21:58 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-15 21:03:43 +0100
commit04ab49bde8bfadd87c7897b3319238b1da561812 (patch)
treeafd986d551f519de290313bb485d0ee1bfa743c2 /crawl-ref/source/place.cc
parent51aa1dcc06634d7d1851e964ac63b3c1fca3e1cf (diff)
downloadcrawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.tar.gz
crawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.zip
Drop unnecessary parentheses from return statements.
Diffstat (limited to 'crawl-ref/source/place.cc')
-rw-r--r--crawl-ref/source/place.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/place.cc b/crawl-ref/source/place.cc
index ddabe03aa9..844f7063dd 100644
--- a/crawl-ref/source/place.cc
+++ b/crawl-ref/source/place.cc
@@ -40,8 +40,8 @@ unsigned short get_packed_place()
bool single_level_branch(branch_type branch)
{
- return (branch >= 0 && branch < NUM_BRANCHES
- && brdepth[branch] == 1);
+ return branch >= 0 && branch < NUM_BRANCHES
+ && brdepth[branch] == 1;
}
string place_name(unsigned short place, bool long_name, bool include_number)
@@ -86,8 +86,8 @@ string prep_branch_level_name(unsigned short packed_place)
string place = place_name(packed_place, true, true);
if (!place.empty() && place != "Pandemonium")
place[0] = tolower(place[0]);
- return (place.find("level") == 0 ? "on " + place
- : "in " + place);
+ return place.find("level") == 0 ? "on " + place
+ : "in " + place;
}
// Use current branch and depth
@@ -103,7 +103,7 @@ int absdungeon_depth(branch_type branch, int subdepth)
bool branch_allows_followers(branch_type branch)
{
- return (is_connected_branch(branch) || branch == BRANCH_PANDEMONIUM);
+ return is_connected_branch(branch) || branch == BRANCH_PANDEMONIUM;
}
vector<level_id> all_dungeon_ids()