summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilepick.cc
diff options
context:
space:
mode:
authorEnne Walker <ennewalker@users.sourceforge.net>2009-11-17 17:39:33 -0500
committerEnne Walker <ennewalker@users.sourceforge.net>2009-11-17 17:40:29 -0500
commit3a85576b56a1c3098689d2f588950908c981492d (patch)
tree72708364fbbf575376f620ca76b97d09d8c51d05 /crawl-ref/source/tilepick.cc
parent0d745fb1e225dca3dbcd6eee57baca01f793b71d (diff)
downloadcrawl-ref-3a85576b56a1c3098689d2f588950908c981492d.tar.gz
crawl-ref-3a85576b56a1c3098689d2f588950908c981492d.zip
Amending tile_draw_floor bug fix.
The check was earlying out sooner that it should and skipping some initialization.
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);