From 2633544c49534e75bdc777f9262789c628a965c4 Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Mon, 9 Nov 2009 14:57:14 +0300 Subject: Replace mons_is_pacified with monsters::pacified. --- crawl-ref/source/mon-behv.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 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 62cf3b992c..812a796fb7 100644 --- a/crawl-ref/source/mon-behv.cc +++ b/crawl-ref/source/mon-behv.cc @@ -1105,7 +1105,7 @@ void handle_behaviour(monsters *mon) bool isSmart = (mons_intel(mon) > I_ANIMAL); bool isScared = mon->has_ench(ENCH_FEAR); bool isMobile = !mons_is_stationary(mon); - bool isPacified = mons_is_pacified(mon); + bool isPacified = mon->pacified(); bool patrolling = mon->is_patrolling(); static std::vector e; static int e_index = -1; @@ -1848,7 +1848,7 @@ void behaviour_event(monsters *mon, mon_event_type event, int src, break; // Pacified monsters shouldn't change their behaviour. - if (mons_is_pacified(mon)) + if (mon->pacified()) break; // Just set behaviour... foe doesn't change. @@ -1898,7 +1898,7 @@ void behaviour_event(monsters *mon, mon_event_type event, int src, const bool wasLurking = (old_behaviour == BEH_LURK && !mons_is_lurking(mon)); - const bool isPacified = mons_is_pacified(mon); + const bool isPacified = mon->pacified(); if ((wasLurking || isPacified) && (event == ME_DISTURB || event == ME_ALERT || event == ME_EVAL)) -- cgit v1.2.3-54-g00ecf