summaryrefslogtreecommitdiff
path: root/src/melee2.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
committerBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
commit39eb6a171792b3bd34e0afdafa72a1a2b7d9fd78 (patch)
treec81e31967f25c18edacb5929a017e40c14b35468 /src/melee2.cc
parentf035201f330a3b1f50a2041ea9ad3f854f7d4e00 (diff)
Add explicit braces in a few places
Diffstat (limited to 'src/melee2.cc')
-rw-r--r--src/melee2.cc17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/melee2.cc b/src/melee2.cc
index 49742a59..d519dd8a 100644
--- a/src/melee2.cc
+++ b/src/melee2.cc
@@ -924,7 +924,9 @@ void cmonster_msg(char a, cptr fmt, ...)
/* Display */
if (options->disturb_other)
+ {
cmsg_print(a, buf);
+ }
else
{
message_add(buf, a);
@@ -2038,7 +2040,10 @@ static bool_ monst_spell_monst(int m_idx)
case SF_TPORT_IDX:
{
- if (dungeon_flags & DF_NO_TELEPORT) break; /* No teleport on special levels */
+ if (dungeon_flags & DF_NO_TELEPORT)
+ {
+ break; /* No teleport on special levels */
+ }
else
{
disturb_on_other();
@@ -2056,9 +2061,15 @@ static bool_ monst_spell_monst(int m_idx)
case SF_TELE_AWAY_IDX:
{
- if (dungeon_flags & DF_NO_TELEPORT) break;
+ if (dungeon_flags & DF_NO_TELEPORT)
+ {
+ break;
+ }
- if (!direct) break;
+ if (!direct)
+ {
+ break;
+ }
else
{
bool_ resists_tele = FALSE;