diff options
-rw-r--r-- | crawl-ref/source/show.cc | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/crawl-ref/source/show.cc b/crawl-ref/source/show.cc index a7757f0165..a53fd4fe4f 100644 --- a/crawl-ref/source/show.cc +++ b/crawl-ref/source/show.cc @@ -229,18 +229,10 @@ void show_def::init() grid.init(show_type()); backup.init(show_type()); - if (crawl_state.arena) - { - const coord_def &ul = crawl_view.glos1; // Upper left - const coord_def &lr = crawl_view.glos2; // Lower right + const coord_def &ul = crawl_view.glos1; // Upper left + const coord_def &lr = crawl_view.glos2; // Lower right - for (rectangle_iterator ri(ul, lr); ri; ++ri) - update_at(*ri, grid2show(*ri)); - } - else - { - ASSERT(in_bounds(you.pos())); - for (radius_iterator ri(you.pos(), LOS_RADIUS); ri; ++ri) + for (rectangle_iterator ri(ul, lr); ri; ++ri) + if (see_cell(*ri)) update_at(*ri, grid2show(*ri)); - } } |