summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-tornado.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-09-13 07:13:30 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-09-13 07:13:30 +0200
commite5f0be714222620701b36ee5cc7bed69b78eb56d (patch)
treef6f152d78b1254ce6ba96d51c9f0d24410a33cb2 /crawl-ref/source/spl-tornado.cc
parenta2d0eab8a23003d8b096265efd7b4c76303b2dac (diff)
downloadcrawl-ref-e5f0be714222620701b36ee5cc7bed69b78eb56d.tar.gz
crawl-ref-e5f0be714222620701b36ee5cc7bed69b78eb56d.zip
Move mons_is_stationary() to struct actor.
Simplifies code in a number of places, and also fixes a few tree-moving bugs.
Diffstat (limited to 'crawl-ref/source/spl-tornado.cc')
-rw-r--r--crawl-ref/source/spl-tornado.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-tornado.cc b/crawl-ref/source/spl-tornado.cc
index 86fc2bd719..a18077e066 100644
--- a/crawl-ref/source/spl-tornado.cc
+++ b/crawl-ref/source/spl-tornado.cc
@@ -156,7 +156,7 @@ spret_type cast_tornado(int powc, bool fail)
static bool _mons_is_unmovable(const monster *mons)
{
// hard to explain uprooted oklobs surviving
- if (mons_is_stationary(mons))
+ if (mons->is_stationary())
return true;
// we'd have to rotate everything
if (mons_is_tentacle_or_tentacle_segment(mons->type)