diff options
Diffstat (limited to 'crawl-ref/source/los_def.cc')
-rw-r--r-- | crawl-ref/source/los_def.cc | 5 |
1 files changed, 5 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)); |