diff options
author | Florian Diebold <flodiebold@gmail.com> | 2011-06-08 14:30:26 +0200 |
---|---|---|
committer | Florian Diebold <flodiebold@gmail.com> | 2011-06-26 17:41:31 +0200 |
commit | 4fff6730bba62cb2cfbe07fc7732543393449800 (patch) | |
tree | b474f342b3f5340851f1c4e7652d3cad07921436 /crawl-ref/source/tilecell.cc | |
parent | 1c9eff168e4b90d66f1ca9e404cad32312d597f3 (diff) | |
download | crawl-ref-4fff6730bba62cb2cfbe07fc7732543393449800.tar.gz crawl-ref-4fff6730bba62cb2cfbe07fc7732543393449800.zip |
Don't put overlays on unseen tiles.
Diffstat (limited to 'crawl-ref/source/tilecell.cc')
-rw-r--r-- | crawl-ref/source/tilecell.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/tilecell.cc b/crawl-ref/source/tilecell.cc index 39efb33bcd..410bc628c3 100644 --- a/crawl-ref/source/tilecell.cc +++ b/crawl-ref/source/tilecell.cc @@ -355,6 +355,9 @@ static void _pack_wall_shadows(const coord_def &gc, packed_cell *cell) void pack_cell_overlays(const coord_def &gc, packed_cell *cell) { + if (env.map_knowledge(gc).feat() == DNGN_UNSEEN) + return; // Don't put overlays on unseen tiles + if (player_in_branch(BRANCH_SHOALS)) { _pack_shoal_waves(gc, cell); |