diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2013-02-20 13:19:53 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2013-02-20 13:19:53 -0600 |
commit | 1021c964da6ef99a44098cb37f3f9e0f0aa7d045 (patch) | |
tree | 9cc6c48bd2ec37b368075cc5a13b35ce6d5d34d1 /crawl-ref/source/los.cc | |
parent | 2561d3f26183d434f0804af24d8e27c626e8b187 (diff) | |
download | crawl-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.cc | 2 |
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)) |