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/mon-clone.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/mon-clone.cc')
-rw-r--r-- | crawl-ref/source/mon-clone.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/crawl-ref/source/mon-clone.cc b/crawl-ref/source/mon-clone.cc index 142825e3c5..5ca4445a50 100644 --- a/crawl-ref/source/mon-clone.cc +++ b/crawl-ref/source/mon-clone.cc @@ -40,7 +40,7 @@ static std::string _monster_clone_id_for(monster* mons) static bool _monster_clone_exists(monster* mons) { if (!mons->props.exists(clone_master_key)) - return (false); + return false; const std::string clone_id = mons->props[clone_master_key].get_string(); for (monster_iterator mi; mi; ++mi) @@ -48,9 +48,9 @@ static bool _monster_clone_exists(monster* mons) monster* thing(*mi); if (thing->props.exists(clone_slave_key) && thing->props[clone_slave_key].get_string() == clone_id) - return (true); + return true; } - return (false); + return false; } static bool _mons_is_illusion(monster* mons) @@ -70,9 +70,9 @@ static bool _player_is_illusion_cloneable() for (monster_iterator mi; mi; ++mi) { if (mi->type == MONS_PLAYER_ILLUSION && mi->mname == you.your_name) - return (false); + return false; } - return (true); + return true; } bool actor_is_illusion_cloneable(actor *target) @@ -219,7 +219,7 @@ bool mons_clonable(const monster* mon, bool needs_adjacent) || mons_is_ghost_demon(mon->type) || mon->is_named()) { - return (false); + return false; } if (needs_adjacent) @@ -239,7 +239,7 @@ bool mons_clonable(const monster* mon, bool needs_adjacent) } } if (!square_found) - return (false); + return false; } // Is the monster carrying an artefact? @@ -251,10 +251,10 @@ bool mons_clonable(const monster* mon, bool needs_adjacent) continue; if (is_artefact(mitm[index])) - return (false); + return false; } - return (true); + return true; } monster* clone_mons(const monster* orig, bool quiet, bool* obvious, |