diff options
author | Neil Moore <neil@s-z.org> | 2014-05-12 18:00:32 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-05-12 18:11:14 -0400 |
commit | 9bc6d1f085097d001f0ff31f9bb900bb71957212 (patch) | |
tree | ca6c52fa82eac19c98baec7ce93b557e4d5be22e /crawl-ref/source/target.cc | |
parent | bca6d2d0ab66b008f7f1664769ba4a3a655a3444 (diff) | |
download | crawl-ref-9bc6d1f085097d001f0ff31f9bb900bb71957212.tar.gz crawl-ref-9bc6d1f085097d001f0ff31f9bb900bb71957212.zip |
Formatting fixes (add braces).
This fixes all the instances caught by unbrace.
Diffstat (limited to 'crawl-ref/source/target.cc')
-rw-r--r-- | crawl-ref/source/target.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/target.cc b/crawl-ref/source/target.cc index a3d0898846..6d88de947a 100644 --- a/crawl-ref/source/target.cc +++ b/crawl-ref/source/target.cc @@ -109,7 +109,9 @@ bool targetter_beam::set_aim(coord_def a) { 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))) @@ -158,7 +160,9 @@ aff_type targetter_beam::is_affected(coord_def loc) if (cell_is_solid(*i) && beam.affects_wall(grd(*i)) != MB_TRUE && max_expl_rad > 0) + { break; + } c = *i; if (c == loc) @@ -196,8 +200,10 @@ aff_type targetter_beam::is_affected(coord_def loc) { coord_def centre(9,9); if (exp_map_min(loc - c + centre) < INT_MAX) + { return (!cell_is_solid(loc) || aff_wall == MB_TRUE) ? AFF_YES : AFF_MAYBE; + } if (exp_map_max(loc - c + centre) < INT_MAX) return AFF_MAYBE; } @@ -237,7 +243,9 @@ bool targetter_imb::set_aim(coord_def a) if (!(anyone_there(c) && !beam.ignores_monster((monster_at(c)))) && c != end) + { continue; + } vector<coord_def> *which_splash = (first) ? &splash : &splash2; |