From 7a1d7018bc0e074c83abc861fb3420e9a8057111 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Wed, 18 Nov 2009 09:20:53 +0100 Subject: Move tile_draw_floor into view.cc. It seems like it should be merged with some of the other code there. --- crawl-ref/source/tilepick.cc | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'crawl-ref/source/tilepick.cc') diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc index 38161a3bf6..6259f79069 100644 --- a/crawl-ref/source/tilepick.cc +++ b/crawl-ref/source/tilepick.cc @@ -4532,34 +4532,6 @@ void tile_floor_halo(dungeon_feature_type target, int tile) } } -// Called from view.cc. -void tile_draw_floor() -{ - for (int cy = 0; cy < env.tile_fg.height(); cy++) - for (int cx = 0; cx < env.tile_fg.width(); cx++) - { - const coord_def ep(cx, cy); - const coord_def gc = show2grid(ep); - - int bg = TILE_DNGN_UNSEEN | tile_unseen_flag(gc); - - if (in_bounds(gc) && you.see_cell(gc)) - { - dungeon_feature_type feat = grid_appearance(gc); - bg = tileidx_feature(feat, gc.x, gc.y); - - if (feat == DNGN_DETECTED_SECRET_DOOR) - bg |= TILE_FLAG_WAS_SECRET; - else if (is_unknown_stair(gc)) - bg |= TILE_FLAG_NEW_STAIR; - } - - // init tiles - env.tile_bg[ep.x][ep.y] = bg; - env.tile_fg[ep.x][ep.y] = 0; - } -} - // Called from item() in view.cc void tile_place_item(int x, int y, int idx) { -- cgit v1.2.3-54-g00ecf