summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/state.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/state.cc
parent51aa1dcc06634d7d1851e964ac63b3c1fca3e1cf (diff)
downloadcrawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.tar.gz
crawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.zip
Drop unnecessary parentheses from return statements.
Diffstat (limited to 'crawl-ref/source/state.cc')
-rw-r--r--crawl-ref/source/state.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/state.cc b/crawl-ref/source/state.cc
index d2c41f3fbd..87911324f0 100644
--- a/crawl-ref/source/state.cc
+++ b/crawl-ref/source/state.cc
@@ -83,7 +83,7 @@ bool game_state::is_replaying_keys() const
bool game_state::is_repeating_cmd() const
{
- return (repeat_cmd != CMD_NO_CMD);
+ return repeat_cmd != CMD_NO_CMD;
}
void game_state::cancel_cmd_repeat(string reason)
@@ -320,7 +320,7 @@ bool game_state::is_god_acting() const
ASSERT(!(god_act.depth == 0 && god_act.which_god != GOD_NO_GOD));
ASSERT(!(god_act.depth == 0 && !god_act_stack.empty()));
- return (god_act.depth > 0);
+ return god_act.depth > 0;
}
bool game_state::is_god_retribution() const
@@ -401,7 +401,7 @@ vector<god_act_state> game_state::other_gods_acting() const
bool game_state::is_mon_acting() const
{
- return (mon_act != NULL);
+ return mon_act != NULL;
}
monster* game_state::which_mon_acting() const
@@ -539,7 +539,7 @@ void game_state::dump()
bool game_state::player_is_dead() const
{
- return (updating_scores && !need_save);
+ return updating_scores && !need_save;
}
bool game_state::game_standard_levelgen() const
@@ -550,7 +550,7 @@ bool game_state::game_standard_levelgen() const
bool game_state::game_is_normal() const
{
ASSERT(type < NUM_GAME_TYPE);
- return (type == GAME_TYPE_NORMAL || type == GAME_TYPE_UNSPECIFIED);
+ return type == GAME_TYPE_NORMAL || type == GAME_TYPE_UNSPECIFIED;
}
bool game_state::game_is_tutorial() const