summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/los_def.cc5
-rw-r--r--crawl-ref/source/los_def.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/los_def.cc b/crawl-ref/source/los_def.cc
index d53b71c1dc..3e2a3eae2e 100644
--- a/crawl-ref/source/los_def.cc
+++ b/crawl-ref/source/los_def.cc
@@ -68,6 +68,11 @@ void los_def::set_bounds(const circle_def &b)
bds = b;
}
+circle_def los_def::get_bounds() const
+{
+ return (circle_def(center, bds));
+}
+
bool los_def::in_bounds(const coord_def& p) const
{
return (bds.contains(p));
diff --git a/crawl-ref/source/los_def.h b/crawl-ref/source/los_def.h
index 9b9b4a421c..82a82f6447 100644
--- a/crawl-ref/source/los_def.h
+++ b/crawl-ref/source/los_def.h
@@ -24,6 +24,7 @@ public:
void set_center(const coord_def& center);
void set_opacity(const opacity_func& o);
void set_bounds(const circle_def& b);
+ circle_def get_bounds() const;
void update();
bool in_bounds(const coord_def& p) const;