From 39eb6a171792b3bd34e0afdafa72a1a2b7d9fd78 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sat, 17 Sep 2016 09:58:14 +0200 Subject: Add explicit braces in a few places --- src/melee2.cc | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'src/melee2.cc') 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; -- cgit v1.2.3