diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-10-31 22:08:51 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-10-31 22:25:28 +0100 |
commit | bbc2486d1c88ada7fd9212250c3bb33e665b3126 (patch) | |
tree | 18c608343ea02af7a13b06af2adc3a9cad5060fe /crawl-ref/source/coordit.h | |
parent | 477f6671b51a4241ce53d7d3331a817cb5df993c (diff) | |
download | crawl-ref-bbc2486d1c88ada7fd9212250c3bb33e665b3126.tar.gz crawl-ref-bbc2486d1c88ada7fd9212250c3bb33e665b3126.zip |
Give the spiral_iterator an argument, max_radius.
Diffstat (limited to 'crawl-ref/source/coordit.h')
-rw-r--r-- | crawl-ref/source/coordit.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/coordit.h b/crawl-ref/source/coordit.h index 7d4ecf449c..184d368623 100644 --- a/crawl-ref/source/coordit.h +++ b/crawl-ref/source/coordit.h @@ -98,7 +98,8 @@ class spiral_iterator : public: spiral_iterator(const coord_def& _center, bool _fair = true, - bool exclude_center = true); + bool exclude_center = true, + int _max_radius = 107); operator bool() const; coord_def operator *() const; const coord_def* operator->() const; @@ -108,7 +109,7 @@ public: private: coord_def center, current; std::vector<coord_def> lists[3], *vcur, *vnear, *vfar; - int radius; + int radius, max_radius; int threshold; unsigned int icur, iend; bool fair; |