diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-09-13 07:13:30 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-09-13 07:13:30 +0200 |
commit | e5f0be714222620701b36ee5cc7bed69b78eb56d (patch) | |
tree | f6f152d78b1254ce6ba96d51c9f0d24410a33cb2 /crawl-ref/source/spl-tornado.cc | |
parent | a2d0eab8a23003d8b096265efd7b4c76303b2dac (diff) | |
download | crawl-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.cc | 2 |
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) |