CleverRaven/Cataclysm-DDA — pull request #7235 by cSep (2014-04-14 22:04:59+00:00)
Title: is_hostile_within() no longer alerts for tracking mobs/dogs

apologies if i missed a use case here.

I removed monster attitude MATT_FOLLOW from the code in is_hostile_within() since the only time I've ever gotten warnings from that code was for dogs tracking me, interrupting stuff for what seems like no raisin.

As if removing this check wasnt enough, I changed it so that the (cheap) attitude check happens before the (more expensive) visibility check. .. even if you decide to keep the MATT_FOLLOW, that would probably be the better thing to do.