diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 12:14:09 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 12:14:09 +0200 |
commit | c41419c4f47bbf0737d3fedf58128c835d2c4e3b (patch) | |
tree | 764ae18c107df39fd90af718922036bd245561ca /crawl-ref/source/state.cc | |
parent | b80adef8882143cad34f3c8bcc9a8ccbd4440223 (diff) | |
download | crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.tar.gz crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.zip |
Drop parentheses around scalar values in "return".
Diffstat (limited to 'crawl-ref/source/state.cc')
-rw-r--r-- | crawl-ref/source/state.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/crawl-ref/source/state.cc b/crawl-ref/source/state.cc index 64e6d15d97..0ccdfec63a 100644 --- a/crawl-ref/source/state.cc +++ b/crawl-ref/source/state.cc @@ -177,10 +177,10 @@ bool interrupt_cmd_repeat(activity_interrupt_type ai, const activity_interrupt_data &at) { if (crawl_state.cmd_repeat_start) - return (false); + return false; if (crawl_state.repeat_cmd == CMD_WIZARD) - return (false); + return false; switch (ai) { @@ -191,7 +191,7 @@ bool interrupt_cmd_repeat(activity_interrupt_type ai, case AI_HP_LOSS: case AI_MONSTER_ATTACKS: crawl_state.cancel_cmd_repeat("Command repetition interrupted."); - return (true); + return true; default: break; @@ -201,12 +201,12 @@ bool interrupt_cmd_repeat(activity_interrupt_type ai, { const monster* mon = static_cast<const monster* >(at.data); if (!you.can_see(mon)) - return (false); + return false; if (crawl_state.cmd_repeat_started_unsafe && at.context != SC_NEWLY_SEEN) { - return (false); + return false; } crawl_state.cancel_cmd_repeat(); @@ -235,7 +235,7 @@ bool interrupt_cmd_repeat(activity_interrupt_type ai, formatted_mpr(fs, MSGCH_WARN); #endif - return (true); + return true; } // If command repetition is being used to imitate the rest command, @@ -250,11 +250,11 @@ bool interrupt_cmd_repeat(activity_interrupt_type ai, else crawl_state.cancel_cmd_repeat("Command repetition interrupted."); - return (true); + return true; } if (crawl_state.cmd_repeat_started_unsafe) - return (false); + return false; if (ai == AI_HIT_MONSTER) { @@ -266,14 +266,14 @@ bool interrupt_cmd_repeat(activity_interrupt_type ai, if (mons_class_flag(mon->type, M_NO_EXP_GAIN) && mon->visible_to(&you)) { - return (false); + return false; } crawl_state.cancel_cmd_repeat("Command repetition interrupted."); - return (true); + return true; } - return (false); + return false; } void game_state::reset_cmd_repeat() @@ -401,7 +401,7 @@ bool game_state::is_mon_acting() const monster* game_state::which_mon_acting() const { - return (mon_act); + return mon_act; } void game_state::inc_mon_acting(monster* mon) |