change is_safepet macro name

Leaving the word "pet" in the macro name, when it applied to non-pets
seemed too contradictory, even for NetHack.
This commit is contained in:
nhmall
2020-05-03 21:52:41 -04:00
parent aa5eb5a355
commit e440e9569d
3 changed files with 7 additions and 7 deletions

View File

@@ -134,12 +134,12 @@ enum explosion_types {
&& distu(mon->mx, mon->my) <= (BOLT_LIM * BOLT_LIM))))
/*
* is_safepet(mon)
* is_safemon(mon)
*
* A special case check used in attack() and domove(). Placing the
* definition here is convenient. No longer limited to pets.
*/
#define is_safepet(mon) \
#define is_safemon(mon) \
(flags.safe_dog && (mon) && (mon)->mpeaceful && canspotmon(mon) \
&& !Confusion && !Hallucination && !Stunned)