summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stuff.h
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-09 00:15:44 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-09 00:15:44 +0000
commit4c9a1ad6cf83954f217ff4570ddf6010c401e803 (patch)
tree7f3b5e7be3c6b2ab5620a9aec942b3f38d30ce58 /crawl-ref/source/stuff.h
parentfffe9fb7f46a3c4f10837a40b1b72347ddd60a0b (diff)
downloadcrawl-ref-4c9a1ad6cf83954f217ff4570ddf6010c401e803.tar.gz
crawl-ref-4c9a1ad6cf83954f217ff4570ddf6010c401e803.zip
Add reset() method to radius_iterator so that a single iterator
instance can be re-used. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5619 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stuff.h')
-rw-r--r--crawl-ref/source/stuff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/stuff.h b/crawl-ref/source/stuff.h
index 87688b5a57..66e492c7ca 100644
--- a/crawl-ref/source/stuff.h
+++ b/crawl-ref/source/stuff.h
@@ -57,6 +57,7 @@ public:
bool require_los = true,
bool exclude_center = false );
bool done() const;
+ void reset();
operator bool() const { return !done(); }
coord_def operator *() const;