From b4b8747ec41b3fa6543d7c51e02515b0cec1496f Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Fri, 6 Nov 2009 19:46:32 +0300 Subject: Move mons_is_friendly to monsters::friendly. Signed-off-by: Robert Vollmert --- crawl-ref/source/spells3.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/spells3.cc') diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index 65da17abf6..6d49fae5d7 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -1908,7 +1908,7 @@ bool cast_sanctuary(const int power) // move towards the player. if (monsters* mon = monster_at(pos)) { - if (mons_friendly(mon)) + if (mon->friendly()) { mon->foe = MHITYOU; mon->target = you.pos(); @@ -2102,7 +2102,7 @@ bool recall(char type_recalled) if (monster->type == MONS_NO_MONSTER) continue; - if (!mons_friendly(monster)) + if (!monster->friendly()) continue; if (mons_class_is_stationary(monster->type)) -- cgit v1.2.3-54-g00ecf