summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/show.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-18 12:12:48 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-18 12:12:48 +0100
commitdfea26866322085e6ff8b6f915764e21abc83ede (patch)
treeba4bed090224b0293f37b2eb6492eca5159c9ccb /crawl-ref/source/show.cc
parent7ea68756e6d1f790241e100d402dbf7a3865a9f2 (diff)
downloadcrawl-ref-dfea26866322085e6ff8b6f915764e21abc83ede.tar.gz
crawl-ref-dfea26866322085e6ff8b6f915764e21abc83ede.zip
Simplify show update using radius iterator.
Diffstat (limited to 'crawl-ref/source/show.cc')
-rw-r--r--crawl-ref/source/show.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/crawl-ref/source/show.cc b/crawl-ref/source/show.cc
index a08deaad8c..d342225d9b 100644
--- a/crawl-ref/source/show.cc
+++ b/crawl-ref/source/show.cc
@@ -347,10 +347,6 @@ void show_def::init()
grid.init(show_type());
backup.init(show_type());
- 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)
- if (you.see_cell(*ri))
- update_at(*ri, grid2show(*ri));
+ for (radius_iterator ri(&you.get_los()); ri; ++ri)
+ update_at(*ri, grid2show(*ri));
}