* Monsters with both CHAR_CLEAR and ATTR_CLEAR
* flags are always unseen.
*/
- if (!(~r_ptr->flags1 & (RF1_CHAR_CLEAR | RF1_ATTR_CLEAR)))
+ if ((r_ptr->flags1 & (RF1_CHAR_CLEAR | RF1_ATTR_CLEAR)) == (RF1_CHAR_CLEAR | RF1_ATTR_CLEAR))
{
/* Do nothing */
}
* Monsters with both CHAR_CLEAR and ATTR_CLEAR
* flags are always unseen.
*/
- else if (!(~r_ptr->flags1 & (RF1_CHAR_CLEAR | RF1_ATTR_CLEAR)))
+ else if ((r_ptr->flags1 & (RF1_CHAR_CLEAR | RF1_ATTR_CLEAR)) == (RF1_CHAR_CLEAR | RF1_ATTR_CLEAR))
{
/* Do nothing */
}
/* Handle visible monsters, "reflexive" request */
- else if (!(~mode & (MD_POSSESSIVE | MD_OBJECTIVE)))
+ else if ((mode & (MD_POSSESSIVE | MD_OBJECTIVE)) == (MD_POSSESSIVE | MD_OBJECTIVE))
{
/* The monster is visible, so use its gender */
#ifdef JP