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/cmd4.cc | |
parent | 7137a17f77fd3b6c3bbcefa2d621b3a11f161679 (diff) |
Remove redundant parens from RFn_* in expressions
Diffstat (limited to 'src/cmd4.cc')
-rw-r--r-- | src/cmd4.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd4.cc b/src/cmd4.cc index 27f2e46f..b63a2c2c 100644 --- a/src/cmd4.cc +++ b/src/cmd4.cc @@ -3276,7 +3276,7 @@ static void do_cmd_knowledge_uniques(void) monster_race *r_ptr = &r_info[k]; /* Only print Uniques */ - if (r_ptr->flags1 & (RF1_UNIQUE) && + if ((r_ptr->flags1 & RF1_UNIQUE) && !(r_ptr->flags7 & RF7_PET) && !(r_ptr->flags7 & RF7_NEUTRAL)) { @@ -3298,7 +3298,7 @@ static void do_cmd_knowledge_uniques(void) monster_race *r_ptr = &r_info[r_idx]; /* Only print Uniques */ - if (r_ptr->flags1 & (RF1_UNIQUE)) + if (r_ptr->flags1 & RF1_UNIQUE) { bool_ dead = (r_ptr->max_num == 0); @@ -3492,7 +3492,7 @@ static void do_cmd_knowledge_kill_count(void) { monster_race *r_ptr = &r_info[kk]; - if (r_ptr->flags1 & (RF1_UNIQUE)) + if (r_ptr->flags1 & RF1_UNIQUE) { if (r_ptr->max_num == 0) { @@ -3526,7 +3526,7 @@ static void do_cmd_knowledge_kill_count(void) { monster_race *r_ptr = &r_info[k]; - if (r_ptr->flags1 & (RF1_UNIQUE)) + if (r_ptr->flags1 & RF1_UNIQUE) { bool_ dead = (r_ptr->max_num == 0); |