summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player-reacts.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/player-reacts.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/player-reacts.cc')
-rw-r--r--crawl-ref/source/player-reacts.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/player-reacts.cc b/crawl-ref/source/player-reacts.cc
index ef825bea03..210fe7ef56 100644
--- a/crawl-ref/source/player-reacts.cc
+++ b/crawl-ref/source/player-reacts.cc
@@ -305,8 +305,10 @@ void player_reacts_to_monsters()
}
if (you.duration[DUR_TELEPATHY])
+ {
detect_creatures(1 + you.duration[DUR_TELEPATHY] /
(2 * BASELINE_DELAY), true);
+ }
// We have to do the messaging here, because a simple wand of flame will
// call _maybe_melt_player_enchantments twice. It also avoid duplicate
@@ -368,7 +370,9 @@ static void _handle_recitation(int step)
if (apply_area_visible(_zin_recite_to_monsters,
you.attribute[ATTR_RECITE_TYPE], &you))
+ {
viewwindow();
+ }
// Recite trains more than once per use, because it has a
// long timer in between uses and actually takes up multiple