summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-05 21:48:43 +0300
committerRobert Vollmert <rvollmert@gmx.net>2009-11-05 20:54:38 +0100
commit823bd7c3cb7d42efad29de3d98d3def28aa4c63f (patch)
treee9c572d13b626475a97fbc8aba81cabeb50bcd48 /crawl-ref/source/monstuff.cc
parent5cae6a4d1a66d74223cf4b6001b234d24be329d9 (diff)
downloadcrawl-ref-823bd7c3cb7d42efad29de3d98d3def28aa4c63f.tar.gz
crawl-ref-823bd7c3cb7d42efad29de3d98d3def28aa4c63f.zip
Replace mons_is_caught with monsters::caught.
Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 661e7c62d6..a3a67393b9 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -2311,7 +2311,7 @@ bool monster_polymorph(monsters *monster, monster_type targetc,
const int old_hp = monster->hit_points;
const int old_hp_max = monster->max_hit_points;
- const bool old_mon_caught = mons_is_caught(monster);
+ const bool old_mon_caught = monster->caught();
const char old_ench_countdown = monster->ench_countdown;
mon_enchant abj = monster->get_ench(ENCH_ABJ);
@@ -2641,7 +2641,7 @@ bool swap_check(monsters *monster, coord_def &loc, bool quiet)
return (false);
}
- if (mons_is_caught(monster))
+ if (monster->caught())
{
if (!quiet)
simple_monster_message(monster, " is held in a net!");
@@ -3667,7 +3667,7 @@ void monster_teleport(monsters *monster, bool instan, bool silent)
void mons_clear_trapping_net(monsters *mon)
{
- if (!mons_is_caught(mon))
+ if (!mon->caught())
return;
const int net = get_trapping_net(mon->pos());