summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tileview.h
diff options
context:
space:
mode:
authorPekka Lampila <pekka.lampila@iki.fi>2013-05-07 19:52:42 +0300
committerNeil Moore <neil@s-z.org>2013-05-21 02:39:56 -0400
commit101dc42d3889a9951d348223134f5d34d0db9873 (patch)
treec0634f4af743e1640d341a61e4b15f86c51ddf1d /crawl-ref/source/tileview.h
parent3f3b1362c79ec4b6a15acbd1f870d296fe588c5a (diff)
downloadcrawl-ref-101dc42d3889a9951d348223134f5d34d0db9873.tar.gz
crawl-ref-101dc42d3889a9951d348223134f5d34d0db9873.zip
Fix rare case of out of LOS item not being drawn
Tiles only. Could also be another foreground feature (cloud) instead of an item. This would happen when an out of LOS monster tile was removed. Rename tile_clear_monster to tile_reset_fg and have it reset the foreground tile, instead of just clearing it. Also make clear_map function work properly on tiles even when clear_mons=false.
Diffstat (limited to 'crawl-ref/source/tileview.h')
-rw-r--r--crawl-ref/source/tileview.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/tileview.h b/crawl-ref/source/tileview.h
index 6be037ca36..06be06a491 100644
--- a/crawl-ref/source/tileview.h
+++ b/crawl-ref/source/tileview.h
@@ -45,7 +45,7 @@ void tile_floor_halo(dungeon_feature_type target, tileidx_t tile);
// Tile view related
void tile_draw_floor();
-void tile_clear_monster(const coord_def &gc);
+void tile_reset_fg(const coord_def &gc);
void tile_reset_feat(const coord_def &gc);
void tile_place_ray(const coord_def &gc, aff_type in_range);
void tile_draw_rays(bool reset_count);