summaryrefslogtreecommitdiff
path: root/src/monster2.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-06-20 22:49:05 +0200
committerBardur Arantsson <bardur@scientician.net>2016-06-20 22:49:05 +0200
commit145ea9e004c6014c790abb8d7b81f7f1547af3b9 (patch)
treef11869d7682a9e97a335b2baeba7458db6ff4473 /src/monster2.cc
parentca3fab4c43e155494e7eddfede551f3ced7ddad0 (diff)
Change flag_set bool conversion to 'explicit'
Diffstat (limited to 'src/monster2.cc')
-rw-r--r--src/monster2.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/monster2.cc b/src/monster2.cc
index 52b342d4..bf1d3d12 100644
--- a/src/monster2.cc
+++ b/src/monster2.cc
@@ -2218,9 +2218,9 @@ s16b place_monster_one(int y, int x, int r_idx, int ego, bool_ slp, int status)
const bool_ good = (r_ptr->flags & RF_DROP_GOOD) ? TRUE : FALSE;
const bool_ great = (r_ptr->flags & RF_DROP_GREAT) ? TRUE : FALSE;
- const bool_ do_gold = (!(r_ptr->flags & RF_ONLY_ITEM));
- const bool_ do_item = (!(r_ptr->flags & RF_ONLY_GOLD));
- const bool_ do_mimic = (r_ptr->flags & RF_MIMIC);
+ auto const do_gold = (r_ptr->flags & RF_ONLY_ITEM).empty();
+ auto const do_item = (r_ptr->flags & RF_ONLY_GOLD).empty();
+ auto const do_mimic = bool(r_ptr->flags & RF_MIMIC);
const int force_coin = get_coin_type(r_ptr);