summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/hints.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2013-11-15 17:26:11 -0500
committerNeil Moore <neil@s-z.org>2013-11-15 17:26:11 -0500
commite7b96ffa70ca93a3cea9e2cead6f40085a6a2d68 (patch)
treeec3e4b86d3b4ed96250f735b4e597e83ee886de8 /crawl-ref/source/hints.cc
parentb65bf4d5198c19095e3084a88983680df19ec5ee (diff)
downloadcrawl-ref-e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68.tar.gz
crawl-ref-e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68.zip
More formatting fixes for return (...);
Diffstat (limited to 'crawl-ref/source/hints.cc')
-rw-r--r--crawl-ref/source/hints.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/crawl-ref/source/hints.cc b/crawl-ref/source/hints.cc
index 220df43d2f..15e67ce493 100644
--- a/crawl-ref/source/hints.cc
+++ b/crawl-ref/source/hints.cc
@@ -796,12 +796,12 @@ static string _colourize_glyph(int col, unsigned ch)
static bool _mons_is_highlighted(const monster* mons)
{
- return (mons->friendly()
- && Options.friend_brand != CHATTR_NORMAL
- || mons_looks_stabbable(mons)
- && Options.stab_brand != CHATTR_NORMAL
- || mons_looks_distracted(mons)
- && Options.may_stab_brand != CHATTR_NORMAL);
+ return mons->friendly()
+ && Options.friend_brand != CHATTR_NORMAL
+ || mons_looks_stabbable(mons)
+ && Options.stab_brand != CHATTR_NORMAL
+ || mons_looks_distracted(mons)
+ && Options.may_stab_brand != CHATTR_NORMAL;
}
static bool _advise_use_wand()
@@ -1028,7 +1028,7 @@ static bool _cant_butcher()
if (!wpn || wpn->base_type != OBJ_WEAPONS)
return false;
- return (wpn->cursed() && !can_cut_meat(*wpn));
+ return wpn->cursed() && !can_cut_meat(*wpn);
}
static string _describe_portal(const coord_def &gc)
@@ -3961,9 +3961,9 @@ void hints_inscription_info(string prompt)
// but it's a lot more hit'n'miss now.
bool hints_pos_interesting(int x, int y)
{
- return (cloud_type_at(coord_def(x, y)) != CLOUD_NONE
- || _water_is_disturbed(x, y)
- || _hints_feat_interesting(grd[x][y]));
+ return cloud_type_at(coord_def(x, y)) != CLOUD_NONE
+ || _water_is_disturbed(x, y)
+ || _hints_feat_interesting(grd[x][y]);
}
static bool _hints_feat_interesting(dungeon_feature_type feat)
@@ -4349,7 +4349,7 @@ static bool _water_is_disturbed(int x, int y)
if (!mon || grd(c) != DNGN_SHALLOW_WATER || !you.see_cell(c))
return false;
- return (!mon->visible_to(&you) && !mons_flies(mon));
+ return !mon->visible_to(&you) && !mons_flies(mon);
}
bool hints_monster_interesting(const monster* mons)