summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/target.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-07-05 22:01:58 -0400
committerNeil Moore <neil@s-z.org>2014-07-05 22:21:28 -0400
commit3d2a0df9fdb6e46349e48701897ec4acec95a548 (patch)
tree8caba590262b4763184fef69dc1558d860667b89 /crawl-ref/source/target.cc
parentceea6a155e3bee001770670fc9f21dfe9ab668d8 (diff)
downloadcrawl-ref-3d2a0df9fdb6e46349e48701897ec4acec95a548.tar.gz
crawl-ref-3d2a0df9fdb6e46349e48701897ec4acec95a548.zip
Reformat.
Mostly by joining short lines in places where that would let us remove braces.
Diffstat (limited to 'crawl-ref/source/target.cc')
-rw-r--r--crawl-ref/source/target.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/crawl-ref/source/target.cc b/crawl-ref/source/target.cc
index 6d88de947a..9d4167a623 100644
--- a/crawl-ref/source/target.cc
+++ b/crawl-ref/source/target.cc
@@ -107,17 +107,11 @@ bool targetter_beam::set_aim(coord_def a)
for (vector<coord_def>::const_iterator i = path_taken.begin();
i != path_taken.end(); ++i)
{
- if (cell_is_solid(*i)
- && tempbeam.affects_wall(grd(*i)) != MB_TRUE)
- {
+ if (cell_is_solid(*i) && tempbeam.affects_wall(grd(*i)) != MB_TRUE)
break;
- }
tempbeam2.target = *i;
- if (anyone_there(*i)
- && !tempbeam.ignores_monster(monster_at(*i)))
- {
+ if (anyone_there(*i) && !tempbeam.ignores_monster(monster_at(*i)))
break;
- }
}
tempbeam2.use_target_as_pos = true;
exp_map_min.init(INT_MAX);