summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/coordit.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-05 05:46:37 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-05 07:03:12 +0100
commita64525a6adf4aed6bc899ed25b889a5881201a65 (patch)
treeca53bb078a96e8114459e859e5daa7a41ee0d08c /crawl-ref/source/coordit.cc
parent748cab26b797272214374b0ae6bf673de93d2213 (diff)
downloadcrawl-ref-a64525a6adf4aed6bc899ed25b889a5881201a65.tar.gz
crawl-ref-a64525a6adf4aed6bc899ed25b889a5881201a65.zip
Get rid of a strange accessor.
Diffstat (limited to 'crawl-ref/source/coordit.cc')
-rw-r--r--crawl-ref/source/coordit.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/coordit.cc b/crawl-ref/source/coordit.cc
index e70045e821..c041c5df1c 100644
--- a/crawl-ref/source/coordit.cc
+++ b/crawl-ref/source/coordit.cc
@@ -11,7 +11,6 @@
#include "coord.h"
#include "los_def.h"
#include "random.h"
-#include "player.h"
rectangle_iterator::rectangle_iterator(const coord_def& corner1,
const coord_def& corner2)
@@ -203,7 +202,7 @@ radius_iterator::radius_iterator(const coord_def center, int param,
radius_iterator::radius_iterator(const coord_def _center,
los_type _los,
bool _exclude_center)
- : circle(_center, you.current_vision, C_ROUND),
+ : circle(_center, los_radius2, C_CIRCLE),
iter(circle.iter()),
exclude_center(_exclude_center)
{