summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-speak.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/mon-speak.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/mon-speak.cc')
-rw-r--r--crawl-ref/source/mon-speak.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-speak.cc b/crawl-ref/source/mon-speak.cc
index 710abc9042..6bbd4cf6af 100644
--- a/crawl-ref/source/mon-speak.cc
+++ b/crawl-ref/source/mon-speak.cc
@@ -656,7 +656,7 @@ bool mons_speaks(monster* mons)
// Now that we're not dealing with a specific monster name, include
// whether or not it can move in the prefix.
- if (mons_is_stationary(mons))
+ if (mons->is_stationary())
prefixes.insert(prefixes.begin(), "stationary");
// Names for the exact monster name and its genus have failed,