summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shout.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-05-12 18:00:32 -0400
committerNeil Moore <neil@s-z.org>2014-05-12 18:11:14 -0400
commit9bc6d1f085097d001f0ff31f9bb900bb71957212 (patch)
treeca6c52fa82eac19c98baec7ce93b557e4d5be22e /crawl-ref/source/shout.cc
parentbca6d2d0ab66b008f7f1664769ba4a3a655a3444 (diff)
downloadcrawl-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/shout.cc')
-rw-r--r--crawl-ref/source/shout.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/shout.cc b/crawl-ref/source/shout.cc
index 301e0d71d3..0a2f5d80bc 100644
--- a/crawl-ref/source/shout.cc
+++ b/crawl-ref/source/shout.cc
@@ -619,7 +619,9 @@ void check_monsters_sense(sense_type sense, int range, const coord_def& where)
case SENSE_WEB_VIBRATION:
if (!mons_class_flag(mi->type, M_WEB_SENSE)
&& !mons_class_flag(get_chimera_legs(*mi), M_WEB_SENSE))
+ {
break;
+ }
if (!one_chance_in(4))
{
if (coinflip())
@@ -1037,9 +1039,11 @@ void noise_grid::write_cell(FILE *outf, coord_def p, int ch) const
{
const int intensity = min(25, cells(p).noise_intensity_millis / 1000);
if (intensity)
+ {
fprintf(outf,
"<span class='i%d'>&#%d;</span>",
intensity, ch);
+ }
else
fprintf(outf, "<span>&#%d;</span>", ch);
}