summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/los.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2012-08-01 16:09:16 -0400
committerNeil Moore <neil@s-z.org>2012-08-01 17:08:37 -0400
commit1cc90225baf47270bbe2a22c1ecbbc839eaa2b90 (patch)
treebd8816720989c3d2193ccaa82cbca5f7b6f2deca /crawl-ref/source/los.cc
parenta0a9240421e89e77aac6011671931521d7e60f0a (diff)
downloadcrawl-ref-1cc90225baf47270bbe2a22c1ecbbc839eaa2b90.tar.gz
crawl-ref-1cc90225baf47270bbe2a22c1ecbbc839eaa2b90.zip
Massive style fix (braces, indentation, etc.)
Diffstat (limited to 'crawl-ref/source/los.cc')
-rw-r--r--crawl-ref/source/los.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc
index 116b7b1eaa..808d377c6c 100644
--- a/crawl-ref/source/los.cc
+++ b/crawl-ref/source/los.cc
@@ -903,9 +903,11 @@ opacity_type mons_opacity(const monster* mon, los_type how)
dungeon_feature_type feat = get_mimic_feat(mon);
if (how == LOS_SOLID)
return feat_is_solid(feat) ? OPC_OPAQUE : OPC_CLEAR;
- if (how == LOS_NO_TRANS)
- if (feat_is_wall(feat) || feat_is_tree(feat))
- return OPC_OPAQUE;
+ if (how == LOS_NO_TRANS
+ && (feat_is_wall(feat) || feat_is_tree(feat)))
+ {
+ return OPC_OPAQUE;
+ }
if (feat_is_opaque(get_mimic_feat(mon)))
return OPC_OPAQUE;
}