summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tileview.h
diff options
context:
space:
mode:
authorFlorian Diebold <flodiebold@gmail.com>2012-01-10 02:52:43 +0100
committerFlorian Diebold <flodiebold@gmail.com>2012-01-10 02:52:43 +0100
commitcdb425331929581a07090a3fcecba99826877d8e (patch)
tree4ca9e40109af24e72376e7d9bb67ce0c453b2799 /crawl-ref/source/tileview.h
parent76a9179fa4006d3a38914b12be3140e9f46a3767 (diff)
downloadcrawl-ref-cdb425331929581a07090a3fcecba99826877d8e.tar.gz
crawl-ref-cdb425331929581a07090a3fcecba99826877d8e.zip
Fix #5111: Items under a plant aren't indicated [in tiles].
The problem was that tile picking happened concurrently to the show update, i.e. while the map cell was being built. This meant that when placing the plant tile, the item wasn't yet in map_knowledge, so no indicator was added. I've refactored the code so that all tile picking happens at the end of show_update_at. I fear this may lead to new bugs, but the alternative (going back to directly accessing igrd) would have been hacky and would likely have caused new (if small) information leaks.
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 669ea9e4bc..e2322c2907 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_map_cell(const coord_def &gc);
+void tile_draw_map_cell(const coord_def &gc, bool foreground_only = false);
void tile_draw_floor();
void tile_place_item(const coord_def &gc, const item_def &item);
void tile_place_item_marker(const coord_def &gc, const item_def &item);