From d43819dd4146ff9efa63da5bfdfd3995adb37a68 Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Sun, 8 Nov 2009 15:51:58 +0300 Subject: Replace mons_cannot_move with monsters::cannot_move. --- crawl-ref/source/mon-act.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/mon-act.cc') diff --git a/crawl-ref/source/mon-act.cc b/crawl-ref/source/mon-act.cc index 4d49b7f266..31e094f37f 100644 --- a/crawl-ref/source/mon-act.cc +++ b/crawl-ref/source/mon-act.cc @@ -2039,7 +2039,7 @@ static void _handle_monster_move(monsters *monster) continue; } - if (mons_cannot_move(monster) || !_monster_move(monster)) + if (monster->cannot_move() || !_monster_move(monster)) monster->speed_increment -= non_move_energy; } you.update_beholder(monster); @@ -2715,7 +2715,7 @@ static bool _mons_can_displace(const monsters *mpusher, // past, either, but they may be woken up by a crowd trying to // elbow past them, and the wake-up check happens downstream. if (mons_is_confused(mpusher) || mons_is_confused(mpushee) - || mons_cannot_move(mpusher) || mons_cannot_move(mpushee) + || mpusher->cannot_move() || mpushee->cannot_move() || mons_is_stationary(mpusher) || mons_is_stationary(mpushee) || mpusher->asleep()) { -- cgit v1.2.3-54-g00ecf