From 3a85576b56a1c3098689d2f588950908c981492d Mon Sep 17 00:00:00 2001 From: Enne Walker Date: Tue, 17 Nov 2009 17:39:33 -0500 Subject: Amending tile_draw_floor bug fix. The check was earlying out sooner that it should and skipping some initialization. --- crawl-ref/source/tilepick.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'crawl-ref/source/tilepick.cc') 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); -- cgit v1.2.3-54-g00ecf