summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shout.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2012-08-01 16:09:16 -0400
committerNeil Moore <neil@s-z.org>2012-08-01 17:08:37 -0400
commit1cc90225baf47270bbe2a22c1ecbbc839eaa2b90 (patch)
treebd8816720989c3d2193ccaa82cbca5f7b6f2deca /crawl-ref/source/shout.cc
parenta0a9240421e89e77aac6011671931521d7e60f0a (diff)
downloadcrawl-ref-1cc90225baf47270bbe2a22c1ecbbc839eaa2b90.tar.gz
crawl-ref-1cc90225baf47270bbe2a22c1ecbbc839eaa2b90.zip
Massive style fix (braces, indentation, etc.)
Diffstat (limited to 'crawl-ref/source/shout.cc')
-rw-r--r--crawl-ref/source/shout.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/shout.cc b/crawl-ref/source/shout.cc
index f64e9913f2..31b96b9f64 100644
--- a/crawl-ref/source/shout.cc
+++ b/crawl-ref/source/shout.cc
@@ -766,7 +766,9 @@ int noise_cell::turn_angle(const coord_def &next_delta) const
// Going in reverse?
if (next_delta.x == -neighbour_delta.x
&& next_delta.y == -neighbour_delta.y)
+ {
return 4;
+ }
const int xdiff = std::abs(neighbour_delta.x - next_delta.x);
const int ydiff = std::abs(neighbour_delta.y - next_delta.y);
@@ -886,9 +888,11 @@ bool noise_grid::propagate_noise_to_neighbour(int base_attenuation,
const coord_def &next_pos)
{
noise_cell &neighbour(cells(next_pos));
- if (!neighbour.can_apply_noise(cell.noise_intensity_millis -
- base_attenuation))
+ if (!neighbour.can_apply_noise(cell.noise_intensity_millis
+ - base_attenuation))
+ {
return false;
+ }
// Diagonals cost more.
if ((next_pos - current_pos).abs() == 2)