diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-10-23 21:45:04 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-10-23 21:45:04 +0200 |
commit | 4ccf1de03828cd26430791c67849737b1e017439 (patch) | |
tree | 1d70180aee15e11f4b2a12b5ae58dbf4e1f1bff2 /crawl-ref/source/tilecell.cc | |
parent | cc4277332e50d904e7847c44229a50de7c58e1f3 (diff) | |
download | crawl-ref-4ccf1de03828cd26430791c67849737b1e017439.tar.gz crawl-ref-4ccf1de03828cd26430791c67849737b1e017439.zip |
Fix endless lava producing a "shore" border when it touches passable lava.
Diffstat (limited to 'crawl-ref/source/tilecell.cc')
-rw-r--r-- | crawl-ref/source/tilecell.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tilecell.cc b/crawl-ref/source/tilecell.cc index 55b4f58e91..9cabb7a3f6 100644 --- a/crawl-ref/source/tilecell.cc +++ b/crawl-ref/source/tilecell.cc @@ -269,7 +269,7 @@ static bool _is_seen_land(coord_def gc) { const dungeon_feature_type feat = _safe_feat(gc); - return (feat != DNGN_UNSEEN && !feat_is_water(feat) && feat != DNGN_LAVA); + return (feat != DNGN_UNSEEN && !feat_is_water(feat) && !feat_is_lava(feat)); } static bool _is_seen_shallow(coord_def gc) @@ -289,7 +289,7 @@ static void _pack_default_waves(const coord_def &gc, packed_cell *cell) if (cell->swamp_tree_water && feat == DNGN_TREE) feat = DNGN_SHALLOW_WATER; - if (!feat_is_water(feat) && feat != DNGN_LAVA || env.grid_colours(gc)) + if (!feat_is_water(feat) && !feat_is_lava(feat) || env.grid_colours(gc)) return; if (feat == DNGN_DEEP_WATER) |