summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/los.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2013-02-20 13:19:53 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2013-02-20 13:19:53 -0600
commit1021c964da6ef99a44098cb37f3f9e0f0aa7d045 (patch)
tree9cc6c48bd2ec37b368075cc5a13b35ce6d5d34d1 /crawl-ref/source/los.cc
parent2561d3f26183d434f0804af24d8e27c626e8b187 (diff)
downloadcrawl-ref-1021c964da6ef99a44098cb37f3f9e0f0aa7d045.tar.gz
crawl-ref-1021c964da6ef99a44098cb37f3f9e0f0aa7d045.zip
Fix general checks for bush and oklob types to use species when applicable.
This ensures that burning bushes and oklob saplings are handled consistently.
Diffstat (limited to 'crawl-ref/source/los.cc')
-rw-r--r--crawl-ref/source/los.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc
index e4b25b2603..9bfc4a41bb 100644
--- a/crawl-ref/source/los.cc
+++ b/crawl-ref/source/los.cc
@@ -894,7 +894,7 @@ void losight(los_grid& sh, const coord_def& center,
opacity_type mons_opacity(const monster* mon, los_type how)
{
// no regard for LOS_ARENA
- if (mon->type == MONS_BUSH && how != LOS_SOLID)
+ if (mons_species(mon->type) == MONS_BUSH && how != LOS_SOLID)
return OPC_HALF;
if (mons_is_feat_mimic(mon->type))