summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilepick.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/tilepick.cc')
-rw-r--r--crawl-ref/source/tilepick.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc
index 50c768cf67..38161a3bf6 100644
--- a/crawl-ref/source/tilepick.cc
+++ b/crawl-ref/source/tilepick.cc
@@ -4541,13 +4541,9 @@ void tile_draw_floor()
const coord_def ep(cx, cy);
const coord_def gc = show2grid(ep);
- // XXX: This should probably be handled a better way.
- if (!in_bounds(gc))
- continue;
-
int bg = TILE_DNGN_UNSEEN | tile_unseen_flag(gc);
- if (you.see_cell(gc))
+ if (in_bounds(gc) && you.see_cell(gc))
{
dungeon_feature_type feat = grid_appearance(gc);
bg = tileidx_feature(feat, gc.x, gc.y);