diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-06-20 22:49:05 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-06-20 22:49:05 +0200 |
commit | 0cb03efd7c438ee8fc5d9444e0c8e60a8eeb7f16 (patch) | |
tree | 53c50379dca6eb832bfa35912a67dab5e5d9aa11 /src/cave.cc | |
parent | 7137a17f77fd3b6c3bbcefa2d621b3a11f161679 (diff) |
Remove redundant parens from RFn_* in expressions
Diffstat (limited to 'src/cave.cc')
-rw-r--r-- | src/cave.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/cave.cc b/src/cave.cc index 4c5c4ae0..09f5d843 100644 --- a/src/cave.cc +++ b/src/cave.cc @@ -1142,10 +1142,10 @@ static void map_info(int y, int x, byte *ap, char *cp) } /* Multi-hued monster */ - else if (r_ptr->flags1 & (RF1_ATTR_MULTI)) + else if (r_ptr->flags1 & RF1_ATTR_MULTI) { /* Is it a shapechanger? */ - if (r_ptr->flags2 & (RF2_SHAPECHANGER)) + if (r_ptr->flags2 & RF2_SHAPECHANGER) { image_random(ap, cp); } @@ -1153,7 +1153,7 @@ static void map_info(int y, int x, byte *ap, char *cp) *cp = c; /* Multi-hued attr */ - if (r_ptr->flags2 & (RF2_ATTR_ANY)) + if (r_ptr->flags2 & RF2_ATTR_ANY) { *ap = randint(15); } @@ -1190,14 +1190,14 @@ static void map_info(int y, int x, byte *ap, char *cp) else { /* Normal (non-clear char) monster */ - if (!(r_ptr->flags1 & (RF1_CHAR_CLEAR))) + if (!(r_ptr->flags1 & RF1_CHAR_CLEAR)) { /* Normal char */ *cp = c; } /* Normal (non-clear attr) monster */ - else if (!(r_ptr->flags1 & (RF1_ATTR_CLEAR))) + else if (!(r_ptr->flags1 & RF1_ATTR_CLEAR)) { /* Normal attr */ *ap = a; @@ -1572,10 +1572,10 @@ void map_info_default(int y, int x, byte *ap, char *cp) } /* Multi-hued monster */ - else if (r_ptr->flags1 & (RF1_ATTR_MULTI)) + else if (r_ptr->flags1 & RF1_ATTR_MULTI) { /* Is it a shapechanger? */ - if (r_ptr->flags2 & (RF2_SHAPECHANGER)) + if (r_ptr->flags2 & RF2_SHAPECHANGER) { image_random(ap, cp); } @@ -1583,7 +1583,7 @@ void map_info_default(int y, int x, byte *ap, char *cp) *cp = c; /* Multi-hued attr */ - if (r_ptr->flags2 & (RF2_ATTR_ANY)) + if (r_ptr->flags2 & RF2_ATTR_ANY) { *ap = randint(15); } @@ -1617,14 +1617,14 @@ void map_info_default(int y, int x, byte *ap, char *cp) else { /* Normal (non-clear char) monster */ - if (!(r_ptr->flags1 & (RF1_CHAR_CLEAR))) + if (!(r_ptr->flags1 & RF1_CHAR_CLEAR)) { /* Normal char */ *cp = c; } /* Normal (non-clear attr) monster */ - else if (!(r_ptr->flags1 & (RF1_ATTR_CLEAR))) + else if (!(r_ptr->flags1 & RF1_ATTR_CLEAR)) { /* Normal attr */ *ap = a; |