diff options
-rw-r--r-- | crawl-ref/source/spells2.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/tilepick.cc | 9 | ||||
-rw-r--r-- | crawl-ref/source/tiles.h | 1 |
3 files changed, 1 insertions, 11 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index 217bb6164f..9577310ebb 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -102,7 +102,7 @@ int detect_items( int pow ) #ifdef USE_TILE // Don't replace previously seen items with an unseen one. if (!is_terrain_seen(*ri)) - tile_place_item_bk(ri->x, ri->y, TILE_UNSEEN_ITEM); + env.tile_bk_fg[ri->x][ri->y] = TILE_UNSEEN_ITEM; #endif } } diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc index 6132d33d30..3c9387a230 100644 --- a/crawl-ref/source/tilepick.cc +++ b/crawl-ref/source/tilepick.cc @@ -4297,15 +4297,6 @@ void tile_place_item(int x, int y, int idx) env.tile_bg[x-1][y-1] |= TILE_FLAG_CURSOR3; } -void tile_place_item_bk(int gx, int gy, int idx) -{ - int t = tileidx_item(mitm[idx]); - env.tile_bk_fg[gx][gy] = t; - - if (item_needs_autopickup(mitm[idx])) - env.tile_bk_bg[gx][gy] |= TILE_FLAG_CURSOR3; -} - // Called from item() in view.cc void tile_place_item_marker(int x, int y, int idx) { diff --git a/crawl-ref/source/tiles.h b/crawl-ref/source/tiles.h index b3ce5cf2cf..e1bbd5ff9d 100644 --- a/crawl-ref/source/tiles.h +++ b/crawl-ref/source/tiles.h @@ -79,7 +79,6 @@ void tile_draw_floor(); void tile_place_monster(int gx, int gy, int idx, bool foreground = true, bool detected = false); void tile_place_item(int x, int y, int idx); -void tile_place_item_bk(int gx, int gy, int idx); void tile_place_item_marker(int x, int y, int idx); void tile_place_cloud(int x, int y, int type, int decay); void tile_place_ray(const coord_def& gc, bool in_range); |