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/output.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/output.cc') diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index ca122c3237..8b0d4e9adb 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -1086,7 +1086,7 @@ void draw_border(void) static bool _mons_hostile(const monsters *mon) { - return (!mons_friendly(mon) && !mons_neutral(mon)); + return (!mon->friendly() && !mons_neutral(mon)); } static std::string _get_monster_name(const monster_info& m, @@ -1096,7 +1096,7 @@ static std::string _get_monster_name(const monster_info& m, const monsters *mon = m.m_mon; bool adj = false; - if (mons_friendly(mon)) + if (mon->friendly()) { desc += "friendly "; adj = true; @@ -1138,13 +1138,13 @@ bool compare_monsters_attitude( const monsters *m1, const monsters *m2 ) if (mons_neutral(m1)) { - if (mons_friendly(m2)) + if (m2->friendly()) return (true); if (_mons_hostile(m2)) return (false); } - if (mons_friendly(m1) && !mons_friendly(m2)) + if (m1->friendly() && !m2->friendly()) return (false); // If we get here then monsters have the same attitude. -- cgit v1.2.3-54-g00ecf