summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/show.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-05 23:07:01 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-05 23:07:40 +0100
commit282bc37721ec3b076e8a4f35d5f6361e591e9698 (patch)
treed97c41cb3cdbc939ac202e52f779c65ffa780307 /crawl-ref/source/show.cc
parent05a0629e1831ccdee8b2dd2ba7dee555496ae743 (diff)
downloadcrawl-ref-282bc37721ec3b076e8a4f35d5f6361e591e9698.tar.gz
crawl-ref-282bc37721ec3b076e8a4f35d5f6361e591e9698.zip
Fix map boundary not being drawn.
Diffstat (limited to 'crawl-ref/source/show.cc')
-rw-r--r--crawl-ref/source/show.cc16
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));
- }
}