diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-06 19:46:32 +0300 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-06 19:52:58 +0100 |
commit | b4b8747ec41b3fa6543d7c51e02515b0cec1496f (patch) | |
tree | efb1625c80d595b58b8bde933decd1dfc674ee04 /crawl-ref/source/spells3.cc | |
parent | 22adbee6a63d3fb1ee05d0e6ff41e80e95b4afc7 (diff) | |
download | crawl-ref-b4b8747ec41b3fa6543d7c51e02515b0cec1496f.tar.gz crawl-ref-b4b8747ec41b3fa6543d7c51e02515b0cec1496f.zip |
Move mons_is_friendly to monsters::friendly.
Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r-- | crawl-ref/source/spells3.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |