summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-04 11:55:50 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-05 05:14:16 +0100
commitc85d5d303fb3957007230e665cb37b8d21e17376 (patch)
tree37f3d6af05d645ac6570e29dd7e1cb99e3ef9fd6 /crawl-ref/source/view.cc
parentbfccd69dc6f11e2a37f96a5b2b8cb07f956404a9 (diff)
downloadcrawl-ref-c85d5d303fb3957007230e665cb37b8d21e17376.tar.gz
crawl-ref-c85d5d303fb3957007230e665cb37b8d21e17376.zip
Update the whole arena.
It was the only user of non-standard get_los().
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r--crawl-ref/source/view.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index f5613a7e74..7eedc088c5 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -864,8 +864,17 @@ static int player_view_update_at(const coord_def &gc)
static void player_view_update()
{
+ if (crawl_state.game_is_arena())
+ {
+ for (rectangle_iterator ri(crawl_view.vgrdc, LOS_MAX_RANGE); ri; ++ri)
+ player_view_update_at(*ri);
+ // no need to do excludes on the arena
+ return;
+ }
+
vector<coord_def> update_excludes;
bool need_update = false;
+
for (radius_iterator ri(you.pos(), LOS_DEFAULT); ri; ++ri)
{
int flags = player_view_update_at(*ri);