summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stairs.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2014-01-09 22:46:14 +0100
committerAdam Borowski <kilobyte@angband.pl>2014-01-10 01:27:07 +0100
commit08cb1a4dcf80dd9784e1cfd26729a000c13fe767 (patch)
tree1bac450446aa22ba68f871d3c239694929d1b24f /crawl-ref/source/stairs.cc
parenta735ae8250517f301fbf828a4f4cbc4924df3adb (diff)
downloadcrawl-ref-08cb1a4dcf80dd9784e1cfd26729a000c13fe767.tar.gz
crawl-ref-08cb1a4dcf80dd9784e1cfd26729a000c13fe767.zip
Drop some useless parentheses around comparisons.
Diffstat (limited to 'crawl-ref/source/stairs.cc')
-rw-r--r--crawl-ref/source/stairs.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/stairs.cc b/crawl-ref/source/stairs.cc
index 2ecf9d21f5..1693d33af2 100644
--- a/crawl-ref/source/stairs.cc
+++ b/crawl-ref/source/stairs.cc
@@ -655,7 +655,7 @@ void down_stairs(dungeon_feature_type force_stair, bool force_known_shaft)
|| (force_stair == DNGN_TRAP_SHAFT
&& force_known_shaft);
// Latter case is falling down a shaft.
- const bool shaft = known_shaft || (force_stair == DNGN_TRAP_SHAFT);
+ const bool shaft = known_shaft || force_stair == DNGN_TRAP_SHAFT;
level_id shaft_dest;
// Up and down both work for portals.
@@ -711,7 +711,7 @@ void down_stairs(dungeon_feature_type force_stair, bool force_known_shaft)
handle_items_on_shaft(you.pos(), false);
string howfar;
- if (force_stair && (shaft_depth > 1))
+ if (force_stair && shaft_depth > 1)
howfar = make_stringf(" for %d floors", shaft_depth);
if (!you.flight_mode() || force_stair)