From 3232b4719ebfaccae12c628b01c6ca37ad38254e Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Sat, 7 Nov 2009 12:33:40 +0300 Subject: Replace mons_neutral with monsters::neutral. Signed-off-by: Jude Brown --- crawl-ref/source/mon-behv.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/mon-behv.cc') diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc index cf65f76b01..a5822cc401 100644 --- a/crawl-ref/source/mon-behv.cc +++ b/crawl-ref/source/mon-behv.cc @@ -1085,7 +1085,7 @@ void handle_behaviour(monsters *mon) { bool changed = true; bool isFriendly = mon->friendly(); - bool isNeutral = mons_neutral(mon); + bool isNeutral = mon->neutral(); bool wontAttack = mons_wont_attack(mon); // Whether the player is in LOS of the monster and can see @@ -1229,7 +1229,7 @@ void handle_behaviour(monsters *mon) // Neutral monsters prefer not to attack players, or other neutrals. if (isNeutral && mon->foe != MHITNOT - && (mon->foe == MHITYOU || mons_neutral(&menv[mon->foe]))) + && (mon->foe == MHITYOU || menv[mon->foe].neutral())) { mon->foe = MHITNOT; } @@ -1606,7 +1606,7 @@ static bool _mons_check_foe(monsters *mon, const coord_def& p, && mon->can_see(foe) && (friendly || !is_sanctuary(p)) && (foe->friendly() != friendly - || (neutral && !mons_neutral(foe)))) + || (neutral && !foe->neutral()))) { return (true); } @@ -1618,7 +1618,7 @@ static bool _mons_check_foe(monsters *mon, const coord_def& p, void _set_nearest_monster_foe(monsters *mon) { const bool friendly = mon->friendly(); - const bool neutral = mons_neutral(mon); + const bool neutral = mon->neutral(); for (int k = 1; k <= LOS_RADIUS; ++k) { -- cgit v1.2.3-54-g00ecf