diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-11-04 19:20:56 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-11-05 05:14:16 +0100 |
commit | 5114b4b827b5b56b3f5e6a204c682c3ac77ad755 (patch) | |
tree | 183b95a620df7b62a21223605ad877f85beb75cc /crawl-ref/source/coordit.h | |
parent | 1f1809d2796684ad03af05bea3754acb0e2e513d (diff) | |
download | crawl-ref-5114b4b827b5b56b3f5e6a204c682c3ac77ad755.tar.gz crawl-ref-5114b4b827b5b56b3f5e6a204c682c3ac77ad755.zip |
Get rid of the radius_iterator "legacy" constructor.
It was really weird: working on a square, but in almost all cases
restricting it to your view (a circle). Note this is _your_ view rather
than from the iterator's center -- which hasn't been used once in the
obvious interesting way.
As usual, this commit fixes a load of "act through glass" bugs, ando/or
using los modes that don't make sense in the context.
Diffstat (limited to 'crawl-ref/source/coordit.h')
-rw-r--r-- | crawl-ref/source/coordit.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/crawl-ref/source/coordit.h b/crawl-ref/source/coordit.h index cea210454a..9180ce3a63 100644 --- a/crawl-ref/source/coordit.h +++ b/crawl-ref/source/coordit.h @@ -75,16 +75,8 @@ class los_base; class radius_iterator : public iterator<forward_iterator_tag, coord_def> { public: - // General constructor. - radius_iterator(const coord_def& center, int param, - circle_type ctype, - bool exclude_center = false); - // Legacy constructor -- use above instead. - radius_iterator(const coord_def& center, int radius, - bool roguelike_metric = true, - bool require_los = true, + radius_iterator(const coord_def center, int param, circle_type ctype, bool exclude_center = false); - radius_iterator(const coord_def center, int param, circle_type ctype, los_type los, bool exclude_center = false); radius_iterator(const coord_def center, los_type los, |