diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-11-14 17:21:58 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-11-15 21:03:43 +0100 |
commit | 04ab49bde8bfadd87c7897b3319238b1da561812 (patch) | |
tree | afd986d551f519de290313bb485d0ee1bfa743c2 /crawl-ref/source/spl-transloc.cc | |
parent | 51aa1dcc06634d7d1851e964ac63b3c1fca3e1cf (diff) | |
download | crawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.tar.gz crawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.zip |
Drop unnecessary parentheses from return statements.
Diffstat (limited to 'crawl-ref/source/spl-transloc.cc')
-rw-r--r-- | crawl-ref/source/spl-transloc.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-transloc.cc b/crawl-ref/source/spl-transloc.cc index 36bb493ea8..95ad6d6749 100644 --- a/crawl-ref/source/spl-transloc.cc +++ b/crawl-ref/source/spl-transloc.cc @@ -159,7 +159,7 @@ int blink(int pow, bool high_level_controlled_blink, bool wizard_blink, mpr("The orb interferes with your control of the blink!", MSGCH_ORB); // abort still wastes the turn if (high_level_controlled_blink && coinflip()) - return (cast_semi_controlled_blink(pow, false, false) ? 1 : 0); + return cast_semi_controlled_blink(pow, false, false) ? 1 : 0; random_blink(false); } else if (!allow_control_teleport(true) && !wizard_blink) @@ -169,7 +169,7 @@ int blink(int pow, bool high_level_controlled_blink, bool wizard_blink, mpr("A powerful magic interferes with your control of the blink."); // FIXME: cancel shouldn't waste a turn here -- need to rework Abyss handling if (high_level_controlled_blink) - return (cast_semi_controlled_blink(pow, false/*true*/, false) ? 1 : -1); + return cast_semi_controlled_blink(pow, false/*true*/, false) ? 1 : -1; random_blink(false); } else @@ -704,7 +704,7 @@ static bool _teleport_player(bool allow_control, bool new_abyss_area, } _handle_teleport_update(large_change, old_pos); - return (!is_controlled); + return !is_controlled; } bool you_teleport_to(const coord_def where_to, bool move_monsters) |