summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/view.h')
-rw-r--r--crawl-ref/source/view.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/view.h b/crawl-ref/source/view.h
index 08b8c7b5f9..e108e839fc 100644
--- a/crawl-ref/source/view.h
+++ b/crawl-ref/source/view.h
@@ -265,9 +265,11 @@ public:
// public methods
void set_monster(monsters *mon);
void set_los_centre(int x, int y);
+ void set_los_centre(const coord_def& p) { this->set_los_centre(p.x, p.y); }
void set_los_range(int r);
void fill_los_field(void);
bool in_sight(int x, int y);
+ bool in_sight(const coord_def& p) { return this->in_sight(p.x, p.y); }
protected:
// protected methods