summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/losparam.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/losparam.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/losparam.cc')
-rw-r--r--crawl-ref/source/losparam.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/losparam.cc b/crawl-ref/source/losparam.cc
index 676a003461..0ed1e06c15 100644
--- a/crawl-ref/source/losparam.cc
+++ b/crawl-ref/source/losparam.cc
@@ -68,7 +68,7 @@ static bool mons_block_immob(const monster* mons)
if (crawl_state.game_is_zotdef())
return false;
- return mons_is_stationary(mons);
+ return mons->is_stationary();
}
opacity_type opacity_immob::operator()(const coord_def& p) const