summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-miscast.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/spl-miscast.cc
parentb65bf4d5198c19095e3084a88983680df19ec5ee (diff)
downloadcrawl-ref-e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68.tar.gz
crawl-ref-e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68.zip
More formatting fixes for return (...);
Diffstat (limited to 'crawl-ref/source/spl-miscast.cc')
-rw-r--r--crawl-ref/source/spl-miscast.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/crawl-ref/source/spl-miscast.cc b/crawl-ref/source/spl-miscast.cc
index 364ec31bf9..e85d7ec20e 100644
--- a/crawl-ref/source/spl-miscast.cc
+++ b/crawl-ref/source/spl-miscast.cc
@@ -274,9 +274,9 @@ string MiscastEffect::get_default_cause(bool attribute_to_user) const
if (attribute_to_user)
{
- return (string(you.can_see(act_source) ? act_source->name(DESC_A)
- : "something")
- + " miscasting " + spell_title(spell));
+ return string(you.can_see(act_source) ? act_source->name(DESC_A)
+ : "something")
+ + " miscasting " + spell_title(spell);
}
else
return string("miscast of ") + spell_title(spell);
@@ -284,7 +284,7 @@ string MiscastEffect::get_default_cause(bool attribute_to_user) const
bool MiscastEffect::neither_end_silenced()
{
- return (!silenced(you.pos()) && !silenced(target->pos()));
+ return !silenced(you.pos()) && !silenced(target->pos());
}
void MiscastEffect::do_miscast()
@@ -763,10 +763,10 @@ static bool _has_hair(actor* target)
if (target->is_monster())
return false;
- return (!form_changed_physiology() && you.species != SP_GHOUL
- && you.species != SP_OCTOPODE
- && you.species != SP_TENGU && !player_genus(GENPC_DRACONIAN)
- && you.species != SP_GARGOYLE && you.species != SP_LAVA_ORC);
+ return !form_changed_physiology() && you.species != SP_GHOUL
+ && you.species != SP_OCTOPODE
+ && you.species != SP_TENGU && !player_genus(GENPC_DRACONIAN)
+ && you.species != SP_GARGOYLE && you.species != SP_LAVA_ORC;
}
static string _hair_str(actor* target, bool &plural)
@@ -2345,7 +2345,7 @@ void MiscastEffect::_ice(int severity)
static bool _on_floor(actor* target)
{
- return (target->ground_level() && grd(target->pos()) == DNGN_FLOOR);
+ return target->ground_level() && grd(target->pos()) == DNGN_FLOOR;
}
void MiscastEffect::_earth(int severity)